Mega Code Archive

 
Categories / Php / File Directory
 

Get the file owner

<?php    $uid = fileowner("/etc/passwd");    // Returns "0" on Linux, as root typically has UID of 0.        echo $uid; ?>