Web Hosting Talk







View Full Version : Counters?


trenzterra
06-01-2003, 08:45 AM
Hi, is there any good PHP/MYSQL script that tracks your hits, and is invisible. The hits can be reset, and it shows detail statitics (eg browser, os, screen res) too. There is a password required to login. Any script provides this?

ilyash
06-01-2003, 09:37 PM
write it ureself
have an autoincrement field
and everytime sum1 visits ure site insert null into the table

FW-Mike
06-01-2003, 09:53 PM
That'd be horrible inefficient. If you need information on a very effecient hit counter PM me and we'll talk more.

ilyash
06-01-2003, 09:55 PM
y would it be inefficient?

hiryuu
06-01-2003, 10:34 PM
Because you create a row for every hit when it will never be used except in aggregate form. That will add up to megabytes or gigabytes of useless garbage in a hurry.

Much faster to store the data in aggregate form in the first place. It takes less space and less processing time. You still want to handle the common path in 1 query, though, so you don't waste CPU flip-flopping between the web server and sql.

obviousl
06-02-2003, 01:38 AM
I have one on my personal site.
Wrote it in house, and works like a dream!
Can even use graphics if you wanted to.

email me : sysadmin@cky-au.net if you want it (Free).

Regards,

Chris

trenzterra
06-02-2003, 03:50 AM
I've send an email to obviousl. Please note that I don't know about PHP programming and don't intend to, so if you have any suggestions please suggest to me a script, not to diy.