Try the direct I/O extension, specifically dio_fcntl(). Just make sure the filesystem you're using the locks on was mounted with "-o mand", and the locks will be mandatory by default.
J Ananth Kesari wrote: > Hi, > > From the PHP manual I find that the flock() function does a advisory > file locking. Is there a way to do mandatory file locking where we do > strict locking? That is once a file is locked, no other process or > thread is allowed to edit the file untill the lock owner is done with > his job and he has removed the lock. > > Thanks, > Ananth. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php