note 35370 modified in function.flock by danbrown

From: Date: Mon, 18 May 2009 00:48:04 +0000
Subject: note 35370 modified in function.flock by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155433@lists.php.net to get a copy of this message
locking a file exclusively *and* in non-blocking mode: <?php if (flock($fh, LOCK_EX | LOCK_NB)) { // do sumthin } else { // fail, report file locked } ?> --was-- locking a file exclusively *and* in non-blocking mode: if (flock($fh, LOCK_EX | LOCK_NB)) { // do sumthin } else { // fail, report file locked } http://php.net/manual/en/function.flock.php

« previous php.notes (#155433) next »