RE: [PHP] File locking in PHP

From: Date: Fri, 29 Sep 2000 17:35:45 +0000
Subject: RE: [PHP] File locking in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18088@lists.php.net to get a copy of this message
assuming you're on some sort of nixen, create a file in /tmp of the name of the file you're locking, eg, mytextdb.dat . In your other scripts that access the file, make sure that that file doesn't exist. if it does, don't do anything, if it doesn't, have them perform as they should. when you're scripts are done, have them delete the file -----Original Message----- From: Gloria Sawyers [mailto:gsawyers@musicmatch.com] Sent: Friday, September 29, 2000 10:22 AM To: php-general@lists.php.net Subject: [PHP] File locking in PHP I am trying to find a reasonable way to use file locking in PHP for my simple text file databases 'flock' doesn't seem to work. Any suggestions in trying to figure out how to avoid file writing collisions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#18088) next »