Statistics script I can build into my CMS
View Single Post
06-03-2008, 01:53 PM
Join Date: Jan 2008
Location: England, UK
Originally Posted by
Is it feasible to add a new entry into the database every time someone accesses the site? There could be say a hundred sites with a thousand hits a day, that's a lot of inserts into my db!
It's feasible if you empty the access table once a week, using a cronjob for example. It depends what type of statistic you're looking to track - amount of hits? user browsers?
If you're just looking for a simple hit counter it could be easier to have an attribute for each site called `hits` which you
every time someone visits the site.
View Public Profile
Send a private message to Ross
Visit Ross's homepage!
Find More Posts by Ross