Re: Mandatory File Locking in PHP?

From: Date: Wed, 29 Jan 2003 15:59:27 +0000
Subject: Re: Mandatory File Locking in PHP?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93764@lists.php.net to get a copy of this message
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.

« previous php.dev (#93764) next »