On Wed, Apr 16, 2008 at 7:53 AM, Daniel Brown <parasane@xxxxxxxxx> wrote: > 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. well since i dont have your service dan, im filling in blanks over here; but, do users get to determine the name of the files that get created by this script, or at least rename them; that could be very beneficial. run on sentence #2 ;D -nathan