On 01/13, jeremy brand rearranged the electrons to read:
> Hello 10,000 Screaming Monkeys,
> (Sorry, I couldn't resist!)

's alright.  That's what it's there for. ;)

> You should test the return value of flock(), not just run it.  It is
> designed to tell you whether or not something is safe to do, and since
> you are not testing the result, you are simply ignoring what it is
> trying to tell you.
> 
> I have a small script that uses flock():
> http://www.nirvani.net/software/dr-fun/

Thanks!  That's a good, basic example to help get me started.  I am
intentionally not using a database for the logging, because it doesn't
make much sense to add the overhead just to increment a number on a
single line of a file whenever something's downloaded.

Thanks, also, to Mukul Sabharwal for your suggestion.

I'll give them both a try and see what works best in my environment.

Regards,
Jamie

--
Nurse!  I spy gypsies! Run!
<[EMAIL PROTECTED]>  (Single purpose Email address)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to