Scott Fletcher wrote:
Um, I think I'll stick to file_exist instead and to unlock, I'll grab the IP
address in the text file and match it against the current browser of whoever
is using before deleting the file.  That way, I'll know who is the guilty
party if the person doesn't finish whatever he/she is doing on the browser.


IP address is not reliable identification. And you cannot use flock() either as the lock lasts only while the php script is executed. You should use some uniq string associated with the browser, either cookie or session id.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to