PDA

View Full Version : PHP script to generate simple web statistics



pytheas22
January 23rd, 2009, 04:52 AM
I'm looking for a simple PHP script that would parse an Apache access log and deliver basic web-traffic statistics in HTML format based on the log. The statistics don't need to be fancy; I'm just looking for a count of hits, page views and unique visitors. I'm hoping to find something quick and dirty because I don't have much time to spend setting this up (otherwise I'd be using AWStats).

I've found various websites that offer 'free' code (linking back to a third-party server) that I could put on my site to generate these basic statistics, but I don't really trust them. I'd prefer to have everything done on my server, or to use a service recommended by someone here, rather than the random stuff that comes up via Google.

Also, my server is very old and only has PHP4; it also doesn't really have MySQL to speak of. So a script that could work with those restrictions would be ideal.

Thanks in advance for any suggestions.