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.
再帰的な方法 ( scandir) でディレクトリの変更時間を取得できますが、ディレクトリが空だった場合、または新しい空のディレクトリが によって作成された場合mkdir:
scandir
mkdir
mkdir('newdir'); // how get 'newdir' modification time
同様の投稿や Google ページを検索しましたが、問題は解決しませんでした
あなたが探しているfilemtime:
filemtime
echo date ('F d Y H:i:s', filemtime('newdir'));