How to delete files from directory based on creation date in php?
<p>I have a cache folder that stores html files. They are overwritten when needed, but a lot  of the time, rarely used pages are cached in there also, that just end up using space (after 5 weeks, the drive was full with over 2.7 million cache files). </p>

<p>Whats the best way to loop thru a directory that contains several hundreds of thousands of files, and remove files that are older than 1 day?</p>
