Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Daniel Brown
One not, Amos, is that instead of using $count += 1, you should just do $count++. That will automatically increment the number. On 4/20/07, Amos Vryhof [EMAIL PROTECTED] wrote: I build websites for a lot of people, and many of them want statistics and hit counters for their websites.

[PHP] Website Hit counter and Logger

2007-04-20 Thread Amos Vryhof
I build websites for a lot of people, and many of them want statistics and hit counters for their websites. Since not all of them are on a dedicated or virtual host, I cobbled together a script that builds log files, and displays a graphical hit counter, and another script that runs Webalizer

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 11:06 am, Amos Vryhof wrote: I build websites for a lot of people, and many of them want statistics and hit counters for their websites. Webalizer Analog You can probably find binaries for both, or download logfiles and run them offline or... Since not all of them are

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Amos Vryhof
Richard Lynch wrote: On Fri, April 20, 2007 11:06 am, Amos Vryhof wrote: I build websites for a lot of people, and many of them want statistics and hit counters for their websites. Webalizer Analog Webalizer works fine, and the output is good (though I doubt it's as accurate since it's

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Amos Vryhof
Thanks Daniel, I will switch that. Like I said, I copied it from someone's (obviously erroneous) example and didn't want to mess it up... I usually use variable++ for increments. Daniel Brown wrote: One not, Amos, is that instead of using $count += 1, you should just do $count++. That

Re: [PHP] Website Hit counter and Logger

2007-04-20 Thread Daniel Brown
Here's an idea for testing purposes to determine why it's counting low, too Have your PHP script write to two files --- one that contains the number as it is now, and one that writes the number and a timestamp on a new line each time it's accessed. This way, you can scan down the list