RE: [PHP] reading/writing flatfiles with simultaneous users?

From: Date: Tue, 26 Sep 2000 14:20:38 +0000
Subject: RE: [PHP] reading/writing flatfiles with simultaneous users?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17617@lists.php.net to get a copy of this message
What about a mutex? You can use PHP's semaphore functions to ensure that only one process can access the file. See the manual for examples ... -----Mensaje original----- De: Craig Simons [mailto:csimons@cdwebstudios.com] Enviado el: martes, 26 de septiembre de 2000 8:18 Para: php-general@lists.php.net Asunto: [PHP] reading/writing flatfiles with simultaneous users? I have a script that takes in variables from the user (user name, ipaddress, refering page, etc) and writes them to a file. This file is later read by another script to produce various stats. My question is, does php only let one instance of a script execution open and read a flatfile at a time? Obviously a flatfile has severe design limitations compared to a database, but can it be kept accurate enough with proper programming methods? - Craiger -- 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 (#17617) next »