Robert Cummings wrote:

>> I'm probably old fashioned, but to me all that stuff is way overkill.
>>  I also tend to think that synchronizing scripts is a job for the
>> shell, not PHP.
>> 
>> lockfile=/var/lock/<xxxx>/file
>> # clear out a lock older than 60mins
>> find $lockfile -cmin +60 | xargs rm
>> test ! -f $lockfile && (
>> touch $lockfile
>> <run some php>
>> rm -f $lockfile
>> )
> 
> Try running that on windows.

Why? - we don't use Windows. 


/Per Jessen, Zürich


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

Reply via email to