fileatime
獲取文件的最後訪問時間
fileatime()
函數返回指定文件的上次訪問時間。
該函數返回文件上次被訪問的時間。如果出錯則返回false。時間以Unix 時間戳的方式返回。
<?php echo fileatime ( "test.txt" ) ; echo "Last access: " . date ( "F d YH:i:s." , fileatime ( "test.txt" ) ) ; ?>
輸出:
1140684501 Last access: February 23 2006 09:48:21.
fileatime ( filename )
參數 | 描述 |
---|---|
filename | 必需。規定要檢查的文件。 |