Re[2]: [PHP] Only one instance of a script at a time !

From: Date: Fri, 28 Dec 2001 14:47:17 +0000
Subject: Re[2]: [PHP] Only one instance of a script at a time !
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78940@lists.php.net to get a copy of this message
Hello Jerry, Friday, December 28, 2001, 5:37:39 PM, you wrote: JVU> Pseudo code: JVU> check if pid file exists yes ->> DIE no ->> write pid file JVU> At end of script JVU> delete pid file This code can't guarantee the result. Use file locking instead. JVU> -----Original Message----- JVU> From: Nicolas Guilhot [mailto:nguilhot@gphy.campus.univ-poitiers.fr] JVU> Sent: Friday, December 28, 2001 3:32 PM JVU> To: Php General MailingList JVU> Subject: [PHP] Only one instance of a script at a time ! JVU> Running a php script with a cron job, how can I do to have only one instance JVU> of the script running ? -- Best regards, akul mailto:akul@otamedia.com

« previous php.general (#78940) next »