Change owner for the "test.txt" file:
<?php
chown("test.txt","charles")
?>
The chown() function changes the owner of the specified file.
chown(
file,
owner)
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change owner for |
owner | Required. Specifies the new owner. Can be a user name or a user ID. |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!