PHP/File Directory/filectime
Версия от 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>