note 60974 deleted from function.fopen by danbrown

From: Date: Mon, 08 Jun 2009 23:38:11 +0000
Subject: note 60974 deleted from function.fopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156557@lists.php.net to get a copy of this message
Note Submitter: Paul Yanchenko ---- I found a strange behaviour of PHP when several scripts trying to fopen a file for writing access simultaneously. I expect that this will result file sharing violation, but it's not and all scripts can open and write that file. I'd like to use sharing violation to control uniqueness of script instance, but now I even do know how to do this. The only idea is to use "x" flag in fopen(), but if that lock-file somehow will not be deleted - script will never run. PHP 5.0.5, Windows XP Pro SP2

« previous php.notes (#156557) next »