Re: PHP Speech

From: Date: Wed, 16 Apr 2008 14:13:24 +0000
Subject: Re: PHP Speech
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-273059@lists.php.net to get a copy of this message
On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe <quickshiftin@gmail.com> wrote: > On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <aballard@gmail.com> 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

« previous php.general (#273059) next »