Re: colisions writing in a file?

From: Date: Mon, 02 Feb 2004 01:09:30 +0000
Subject: Re: colisions writing in a file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176537@lists.php.net to get a copy of this message
>Are Problems of colisions with a script writing in a file possible? Absolutely. >For exemple for a PHP script reading a file, and rewriting it with >modifications, when it is called a lot of times simultaneously, are >conflicts possible? (over-writing the modifications) or does each session >of this script wait for the previous one to close the file before to >handle it? Only if you use file-locking to eliminate conflicts, see: http:/php.net/manual/en/function.flock.php --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#176537) next »