Menu Riverview Church

CHOWN

Changes file owner

Only the superuser may change the owner of a file.

SYNTAX

chown ( string $filename , mixed $user ) : bool

PARAMETERS

filename

Path to the file.

user

A user name or number.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

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

PHP