chown()
chown - Changes file owner
Syntax
bool chown (
string $filename,
mixed $user)
Arguments
- filename - Path to the file.
- user - A user name or number.
Description
Attempts to change the owner of the file filename to user user. Only the superuser may change the owner of a file.
Version
PHP 4, 5
Return value
Returns TRUE on success or FALSE on failure.