filectime
取得文件的 inode 修改时间
filectime()
函数返回指定文件的上次 inode 修改时间。
该函数返回文件上次 inode 被修改的时间。如果出错则返回 false。时间以 Unix 时间戳的方式返回。
<?php echo filectime("test.txt"); echo "Last change: ".date("F d Y H:i:s.",filectime("test.txt")); ?>
输出:
1138609592 Last change: January 30 2006 09:26:32.
fileatime(filename)
参数 | 描述 |
---|---|
filename | 必需。规定要检查的文件。 |