PHP/File Directory/filectime

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

filectime.php

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



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

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