Menu Riverview Church

FILEOWNER

Gets file owner

SYNTAX

fileowner ( string $filename ) : int

PARAMETERS

filename

Path to the file.

RETURN

Returns the user ID of the owner of the file, or FALSE on failure. The user ID is returned in numerical format, use posix_getpwuid() to resolve it to a username.

EXAMPLES

1

1234567

2

Array
(
    [name] => root
    [passwd] => x
    [uid] => 1234567
    [gid] => 1234567
    [gecos] =>
    [dir] => /root
    [shell] => /bin/bash
)

PHP