Re: [PHP] File locking in PHP???

2004-07-15 Thread Curt Zirzow
* Thus wrote Scott Fletcher: > Nah! I'll settle for a simplier one... file_exists() by checking to see > if the file exist then spit out the error message. Meaning the file is in > use... Don't use file_exists() for that, it will fail miserable with racing conditions. a better more portable wa

Re: [PHP] File locking in PHP???

2004-07-15 Thread Scott Fletcher
Nah! I'll settle for a simplier one... file_exists() by checking to see if the file exist then spit out the error message. Meaning the file is in use... FletchSOD "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi! I saw the php function flock(), since I never used

Re: [PHP] File locking in PHP???

2004-07-15 Thread Scott Fletcher
Yea, read that, very good info there. Alright, I'll make one from scratch and do some testing to find what need to be add/change/remove to make it more a rock solid script. Boy, it remind me of Perl. Thanks, FletchSOD "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi

Re: [PHP] File locking in PHP???

2004-07-15 Thread Matt M.
> Hi! I saw the php function flock(), since I never used it before so I > thought I would ask you folks a couple of questions. did you read all of the user comments on http://us2.php.net/flock There is a bunch of good info in there -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] File locking in PHP???

2004-07-15 Thread Scott Fletcher
Hi! I saw the php function flock(), since I never used it before so I thought I would ask you folks a couple of questions. 1) Is this function good or is there a better function somewhere that I'm not aware of? 2) If the flock() activated the file lock then is it possible that I manually unlock

Re: [PHP] File Locking in PHP.

2001-02-19 Thread David Robley
On Tue, 20 Feb 2001 08:50, Matthew Toledo wrote: > Hello, I am just starting to use PHP. I have been using PERL for quite > some time. I was wondering if there is any specific FILE LOCKING I > need to implement to keep more than one person from altering a text > file at the same time. > > For in

[PHP] File Locking in PHP.

2001-02-19 Thread Matthew Toledo
Hello, I am just starting to use PHP. I have been using PERL for quite some time. I was wondering if there is any specific FILE LOCKING I need to implement to keep more than one person from altering a text file at the same time. For instance, in PERL, you use the flock command to set up an advi