filectime
取得文件的inode 修改時間
filectime()
函數返回指定文件的上次inode 修改時間。
該函數返回文件上次inode 被修改的時間。如果出錯則返回false。時間以Unix 時間戳的方式返回。
<?php echo filectime ( "test.txt" ) ; echo "Last change: " . date ( "F d YH:i:s." , filectime ( "test.txt" ) ) ; ?>
輸出:
1138609592 Last change: January 30 2006 09:26:32.
fileatime ( filename )
參數 | 描述 |
---|---|
filename | 必需。規定要檢查的文件。 |