The fileowner() function returns the user ID (owner) of the specified file.
If successful, the function returns the user ID. If it fails, returns FALSE.
fileowner(filename)
parameter | describe |
---|---|
filename | Required. Specifies the documents to be checked. |
Note: The results of this function will be cached. Please use clearstatcache() to clear the cache.
Note: This function does not work on Windows systems.
Tip: Use posix_getpwuid() to convert the user ID to a user name.
<?phpecho fileowner("test.txt");?>