note 24100 added to function.flock
| From: | geoff at message dot hu | Date: | Tue, 06 Aug 2002 17:10:37 +0000 |
| Subject: | note 24100 added to function.flock | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34408@lists.php.net to get a copy of this message | ||
You should lock the file _before_ opening it, and unlock _after_ closing it. Othervise an another
process might be able to access the file between the lock/unlock and the open/close operation.
--
http://www.php.net/manual/en/function.flock.php
http://master.php.net/manage/user-notes.php?action=edit+24100
http://master.php.net/manage/user-notes.php?action=delete+24100
http://master.php.net/manage/user-notes.php?action=reject+24100