In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Skippy) wrote: > Quoting Jean-Yves <[EMAIL PROTECTED]>: > > Is there a documented way to create in PHP a critical section: I want a > > piece of code to not be executed in the same time several times? > > Give us a set of criteria and we'll see about it.
I want to do something like that : LOCK code UNLOCK The first user locks and runs the code. If another user tries to run the code before the lock is off, he is blocked. Perhaps I can use the flock mechanism! Thanks. Kind regards, Jean-Yves http://www.j2s.net ------------------------------------------ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php