私は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スクリプトを作成しています。私は現在、2 $timeStamp
と$timeStamp2
が異なっていて、第一1は$timeStamp2
はどういう意味PHP:ファイルタイムスタンプとシステム時刻を比較する
$timeStamp Mon Jun 20 15:17:01 2011
$timeStamp2 1308608221
読めるより人間である
$timeStamp = strftime('%c', filectime($this->localPath));
$timeStamp2 = filectime($this->localPath);
を使用していますか?
そして再び、参照する方法であれば、実際にUnixのタイムスタンプあるthe file is more than 5 minutes old?
ありがとうございます。私はちょうどその部分を考え出した。ハハ –
それを知ってうれしい。あなたがチャンスを得たときに、この回答を受け入れたものとしてマークすることを忘れないでください:) – anubhava