RE: [PHP] Can a script run twice?

From: Date: Wed, 24 May 2006 13:58:32 +0000
Subject: RE: [PHP] Can a script run twice?
Groups: php.general 
Request: Send a blank email to php-general+get-236820@lists.php.net to get a copy of this message
> > Apparently the problem isn't solvable by using tokens, sessions, > locking, and such. So why not just check the dB to see if the current > record has already been entered? If so, don't do it again. > > Isn't this a solution? Or is there something here that I'm > not understanding? ...or maybe do a 'REPLACE...' rather than an 'INSERT...'? That way the record is not entered into the database twice if it already exists. Might be a more economical way than doing a "lookup/compare/write if" sequence. JM

« previous php.general (#236820) next »