Home » » fileatime

fileatime

Written By 1 on Sunday, September 30, 2012 | 7:05 PM

int fileatime ( string $filename )

Gets last access time of file


<?php

// outputs e.g.  somefile.txt was last accessed: December 29 2002 22:16:23.

$filename 'somefile.txt';
if (
file_exists($filename)) {
    echo 
"$filename was last accessed: " date("F d Y H:i:s."fileatime($filename));
}

?>


77 PHP视频教程filemtime filectime fileatime date default timezone set touch

0 Comment:

Post a Comment