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.
だから..私は周りを見回してきましたが、本当に必要なものを見つけられなかったので、ここに行きます:
jpg をフォルダーにアップロードするように Web カメラを設定しましたが、サーバーがファイルでオーバーフローするのを避けるために、写真を表示するページを読み込むときに、最新の 20 個を除くすべての jpg を消去したいと考えています。ページがロードされ、フォルダーに 20 個の jpg しかない場合、何も実行されません。
次のようなことができます。
filemtime($filename);
unlink()
必要なもののいくつかのバリエーション: 1、2、3