PHP/File Directory/fileatime

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

fileatime.php

 
<?php
   $file = "data.txt";
   echo "File last accessed: ".date("m-d-y  g:i:sa", fileatime($file));
?>



Getting Date Information About a File

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