RE: [PHP] file locking...

From: Date: Sun, 01 Mar 2009 18:55:34 +0000
Subject: RE: [PHP] file locking...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-289020@lists.php.net to get a copy of this message
On Sun, 2009-03-01 at 10:05 -0800, bruce wrote: > hi rob... > > what you have written is similar to my initial approach... my question, and > the reason for posting this to a few different groups.. is to see if someone > has pointers/thoughts for something much quicker... > > this is going to handle processing requests from client apps to a > webservice.. the backend of the service has to quickly process the files in > the dir as fast as possible to return the data to the web client query... Then use a database to process who gets what. DB queries will queue up while a lock is in place so batches will occur on first come first served basis. I had thought this was for a background script. This will save your script from having to browse the filesystem files, sort by age, etc. Instead put an index on the ID of the file and grab the X lowest IDs. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#289020) next »