PHP/File Directory/fileowner

Материал из Web эксперт
Перейти к: навигация, поиск

fileowner.php

   <source lang="html4strict">

<?php

  $uid = fileowner("/etc/passwd"); 

?>

 </source>
   
  


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

   <source lang="html4strict">

<?

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

?>

 </source>