note 4913 deleted from flock by ronabop
| From: | ronabop@php.net | Date: | Mon, 21 Aug 2000 01:18:57 +0000 |
| Subject: | note 4913 deleted from flock by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2809@lists.php.net to get a copy of this message | ||
I want to make a page with a form for data collection. I want those data to be put into a text file.
Can anyone tell me what's going to happen when two (or more) people will try to send the filled
form at (almost) the same time? Will the data from different people be mixed? I made a small test
and it seems to work OK (only one "proces" is writting to a file until it calls fclose()),
but I don't like to rely on tests. After all - if it works without flock(), why would one want
to use this function?