In Lock($op), I take it that the following statement blocks, ie *waits* 
until successful, thus effectively creating a queue to write to files? True?

flock($lockfp,LOCK_EX);

I want to write a simple counter generator, with counters incrementing 
in a file, so I need to prevent mult-user concurrent access.

Thanks,

- Henrik

-- 

Henrik Bechmann
www.bechmann.ca
Webmaster, www.dufferinpark.ca


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to