(PHP 3, PHP 4 >= 4.0.0)

chown -- Changes file owner


int chown (string filename, mixed user)

Attempts to change the owner of the file filename to user user. Only the superuser may change the owner of a file.

Returns TRUE on success; otherwise returns FALSE.

See also chown() and chmod().

Note: This function does not work on Windows systems