【发布时间】:2011-06-20 22:27:02
【问题描述】:
我是 PHP 新手,正在编写一个包含 a module which reads the file timestamp out of a file and then compare with system time to see whether the file is older than 5 minutes or not and I am wondering how that can be achieved 的 PHP 脚本。我目前正在使用
$timeStamp = strftime('%c', filectime($this->localPath));
$timeStamp2 = filectime($this->localPath);
$timeStamp 和$timeStamp2 这两个是不同的,第一个更易于阅读
$timeStamp Mon Jun 20 15:17:01 2011
$timeStamp2 1308608221
$timeStamp2 是什么意思?
再一次,如何查看the file is more than 5 minutes old?
【问题讨论】: