On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda <thiago.pojda@xxxxxxxxxxxxxxxxxx> wrote: > > I don't know if I'm just lazy or stupid (or both). Stupid, definitely not. Lazy.... well, maybe. ;-P > I went into a similar issue few weeks ago and my solution was to add a > function to delete files created in the last X hours (mine was 24), and call > it on the same script that creates the files. > > Which means it tries to clean up old files every time it creates a new one. > > Is that any good for you guys? It's a great idea in theory, but my concern is the duration in which the files are unlink()'d from the system; the function is called when another file is created - presumably when another user accesses the page - which then lengthens the time before each user after the first will be able to see the end result. Now there is a very long, but very valid, run-on sentence. ;-D -- </Daniel P. Brown> Ask me about: Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo., and shared hosting starting @ $2.50/mo. Unmanaged, managed, and fully-managed! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php