【php开源代码栏目提醒】:网学会员为需要php开源代码的朋友们搜集整理了fileatime.php相关资料,希望对各位网友有所帮助!
<?php
// 输出类似:somefile.txt was last accessed: December 29 2002 22:16:23.
$filename = 'hello/student.txt';
if (file_exists($filename)) {
echo "$filename 文件最近一次访问时间: " . date ("F d Y H:i:s.", fileatime($filename));
}
?>