Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルが PHP によって作成された時刻を取得する方法はありますか?
マニュアルにはそれfilectime()ができないと書かれていますか?
filectime()
方法はありますか?
PHP では、次の方法で「ファイル作成日」を取得できます。 例:
<?php echo filemtime("test.txt"); echo "<br />"; echo "Last modified: ".date("F d Y H:i:s.",filemtime("test.txt")); ?>
このタイプの出力が得られます。
11388197 Last modified: February 01 2006 18:49:37.