The chown() function changes the owner of the specified file.
Returns TRUE if successful and FALSE if failed.
chown(file,owner)
parameter | describe |
---|---|
file | Required. Specifies the documents to be checked. |
owner | Required. Provide new owner. Can be a username or the user's ID. |
<?phpchown("test.txt","charles")?>