On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote:
>
> > In addition to the added time, aren't there any problems with race
> > conditions if two users try to create a file at the same time and each
> > user's script tries to clean the same files at the same time?
>
> ergo, the need to name the files differently; or provide a separate
> namespace, such as a per-user sub-directory.
>
> -nathan
>

It's a start, but what about a user who never returns? You still want
some way to clean out those old files, and I think that's the approach
Thiago was presenting by purging all files older than X
days/hours/minutes. Such a script would have to scan the entire space
regardless of "namespace." I think this points us toward cron rather
than potentially having two simultaneous client processes both looping
through the same directory trying to delete files.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to