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 d
Hi,
Well the problem might be while obtaining the lock.
fopen() with let's say 'a' will open the file, and put
the cursor to the very last byte. The time period
between opening the file and getting the lock is
probably where you're clobbered.
At let's say time X, a file is opened and the writing
Oh man, I wouldn't do it this way. Log this stuff in a separate file
using a simple append which doesn't need logging. Then write yourself a
simple little perl script that figures it out after the fact. File
locking on anything with high traffic is going to make your hair turn
grey.
Another al
g Monkeys wrote:
> Date: Sat, 13 Jan 2001 17:54:31 -0600
> From: "10,000 Screaming Monkeys" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] problem using flock()
>
> Hi,
>
> I'm having a problem with one of the PHP scripts I've written a
Hi,
I'm having a problem with one of the PHP scripts I've written and I'm
hoping someone can point me in the right direction. The portion of
the script that is giving me trouble is the locking of, and writing to,
a logfile (plain text). I'm using flock() as I understand it and have
looked at th
5 matches
Mail list logo