Last dat & time access file in php

by Prabakaran 2012-09-04 12:23:00


$filename = 'retest.php';
if (file_exists($filename)) {
echo "$filename was last accessed: " . date("F d Y H:i:s.", fileatime($filename));
}
754
like
0
dislike
0
mail
flag

You must LOGIN to add comments