chown

(PHP3 , PHP4 )

chown -- Changes file owner

Description

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