Re: [PHP] Is flock() necessary on a simple file append?

2004-10-26 Thread Kevin Grigorenko
"Paul Fierro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/24/2004 5:11 PM, Kevin Grigorenko <[EMAIL PROTECTED]> wrote: > > > I am appending to a file one line of text on every page hit, so there could > > be many occurrences of this

Re: [PHP] MySQL Scalability, part 2

2004-10-24 Thread Kevin Grigorenko
"Kevin Grigorenko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Zareef Ahmed" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > -Original Message- > > From: Kevin Grigorenko [mailto:[EMAIL PROTECTED]

Re: [PHP] MySQL Scalability, part 2

2004-10-24 Thread Kevin Grigorenko
"Zareef Ahmed" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -Original Message- > From: Kevin Grigorenko [mailto:[EMAIL PROTECTED] > Sent: Monday, October 25, 2004 12:36 AM > To: [EMAIL PROTECTED] > Subject: [PHP] MySQL Scalability, part

[PHP] Is flock() necessary on a simple file append?

2004-10-24 Thread Kevin Grigorenko
Hi, I am appending to a file one line of text on every page hit, so there could be many occurrences of this append simultaneously. I am not opening for write ("w") but for append ("a"). Do I need to use flock() to be sure there are no issues? I am running on Solaris. Thanks, Kevin -- PHP Gene

[PHP] MySQL Scalability, part 2

2004-10-24 Thread Kevin Grigorenko
Hi, First, sorry for posting an attachment. Second, I fixed my problem to use files, but I just had a general question: Is it really scalable to use MySQL on every page hit as compared to writing to files? Is it true that it only has a certain number of connections it can open at a time (20-30?

[PHP] Re: MySQL scalability...

2004-10-22 Thread Kevin Grigorenko
"Kevin Grigorenko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Now, I just found out after implementing this whole solution locally that > when I uploaded to the server, the PHP safe_mode options are on, and > non-overwritable. There

Re: [PHP] MySQL scalability...

2004-10-22 Thread Kevin Grigorenko
"John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kevin Grigorenko wrote: > > > Unfortunately, for some security > > issues, I cannot get to the Apache statistics for the site, so I have to > > create my own solution. > > I r