Return the user ID (owner) of "test.txt":
<?php
echo fileowner("test.txt");
?>
Run Example »
The fileowner() function returns the user ID (owner) of the specified file.
Tip: Use posix_getpwuid() to convert the user ID to a user name.
Note: The result of this function is cached. Use clearstatcache() to clear the cache.
fileowner(
filename)
Parameter | Description |
---|---|
filename | Required. Specifies the path to the file to check |
Return Value: | The user ID of the owner of the file on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!