PHP/File Directory/filectime — различия между версиями

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

Версия 13:37, 26 мая 2010

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>