PHP fileowner() Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The fileowner() function returns the user ID (owner) of a specified file.
Returns the user ID on success, or FALSE on failure.
Syntax
fileowner(filename)
| Parameters | Description |
|---|---|
| filename | Required. Specifies the file to check. |
Tips and Notes
**Note:** The results of this function are cached. Use clearstatcache() to clear the cache.
**Note:** This function does not work on Windows systems.
**Tip:** Use posix_getpwuid() to convert a user ID to a user name.
Example
Complete PHP Filesystem Reference Manual