PHP/File Directory/filectime

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

filectime.php

   <source lang="html4strict">

<?php

  $file = "/usr/local/apache2/htdocs/stat.php";
  echo "File inode last changed: ".date("m-d-y  g:i:sa", fileatime($file));

?>

 </source>
   
  


Get the change time of a document with the filectime() function.

   <source lang="html4strict">

<? $ctime = filectime( "test.txt" ); print "test.txt was last changed on "; print date("D d M Y g:i A", $ctime); ?>

 </source>