To read the owner of a file, use the fileowner( ) function : fileowner « File Directory « PHP






To read the owner of a file, use the fileowner( ) function

 
<?
    $owner = fileowner("/etc/passwd");
    if ($owner != 0) {
            print "Warning: /etc/passwd isn't owned by root!";
    }
?>
  
  








Related examples in the same category

1.fileowner.php