Returns the owner of a file.
The value returned is the user ID in numerical form, or FALSE if the call fails.
<?php
$user = posix_getpwuid(fileowner("fileowner.php"));
print "The owner of the file is: " . $user["name"];
?> The owner of the file is: root This code prints who the owner of a file is.