Summary: Gets file owner
int fileowner(string $filename)
Gets the file owner.
Returns the user ID of the owner of the file, or
FALSE on failure. The user ID is returned in numerical format, use posix_getpwuid() to resolve it to a username.
- string $filename: Path to the file.
Example #1 Finding the owner of a file
$filename = 'index.php';
- The results of this function are cached. See clearstatcache() for more details.