Re: How to tell if the file is already locked with flock()???

From: Date: Thu, 15 Jul 2004 19:49:47 +0000
Subject: Re: How to tell if the file is already locked with flock()???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190634@lists.php.net to get a copy of this message
Um, I think I'll stick to file_exist instead and to unlock, I'll grab the IP address in the text file and match it against the current browser of whoever is using before deleting the file. That way, I'll know who is the guilty party if the person doesn't finish whatever he/she is doing on the browser. "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B03522712@nemesis... [snip] How do we tell if the file is already locked when someone use a flock() on the file?? [/snip] If your flock attempt returns FALSE then it is likely locked already

« previous php.general (#190634) next »