chown
Change file owner
chown()
function changes the owner of the specified file.
Return TRUE if successful, otherwise return FALSE.
<?php chown ( "test.txt" , "charles" ) ?>
chown ( file , owner )
parameter | describe |
---|---|
file | Required. Specify documents to be inspected. |
owner | Specify new owners. It can be the username or the user's ID. |
Try changing the owner of the file file to user owner (specified by username or user ID). Only the superuser can change the owner of the file.