![]() |
PHP flock?
Based on another thread I thought I'd ask this in a new one.
Is there any way using flock to 'queue' the file writes in php? All I see is examples how to say "can't get lock" and then die. |
I tried a quick google on it and didn't find anything. I suspect PHP would need to have a "threaded" process, where individual threads had a "wait until ready" state on the file lock, which I don't think PHP has. If it's doable though, I'd definitively like to know.
|
Bump this thread
|
I dont know but you could try adding a sleep(1) then loop and try again
|
Yeah put the lock in a while loop
|
|
Wicked guys, thanks.
According to this: http://www.hudzilla.org/php/8_11_0.php You don't even need to use a while loop? Quote:
|
See. Sometimes this place does teach a person something.
|
All times are GMT -7. The time now is 12:23 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123