[PHP] Don't understand flock

2002-03-11 Thread Kristian Laren
Hi I've read the article on http://www.php.net/manual/en/function.flock.php but i stille don't understand what flock() is doing, what it's good for, how i use it and what it help Would someone please help understand it?? Thanks Kristian Larsen Denmark -- PHP General Mailing List

Re: [PHP] Don't understand flock

2002-03-11 Thread Chris Hewitt
Kristian, flock() is useful in a multiuser environment where two or more users might try to e.g edit a file at the same time. If this will not happen with what you are doing then you have no need for flock(). If, for example, you have a web application that updates a file then the