显示下拉菜单

fileatime()

« file_get_contents | filectime »
<?php
date_default_timezone_set
("UTC");

$int fileatime (
    
  // string $filename
);

// shows the date in a readable format
if ($int) {
    
$date date("Y-m-d H:i:s"$int);
}
?>
结果
$int = false
PHP warning : fileatime(): stat failed for /path/to/foo.txt
示例
#1 fileatime  ("/home/micmap/cgi-bin/php-by-example/functions/f/fileatime.php")
#2 fileatime  ("/path/to/foo.txt")
另请参阅
date, date_default_timezone_set, file_exists, filemtime