PHP/File Directory/fileatime — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:04, 26 мая 2010
fileatime.php
<source lang="html4strict">
<?php
$file = "data.txt"; echo "File last accessed: ".date("m-d-y g:i:sa", fileatime($file));
?>
</source>
Getting Date Information About a File
<source lang="html4strict">
<? $atime = fileatime( "test.txt" ); print "test.txt was last accessed on "; print date("D d M Y g:i A", $atime); ?>
</source>