Closed Thread Icon

Topic awaiting preservation: PHP hit counter statistics? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12865" title="Pages that link to Topic awaiting preservation: PHP hit counter statistics? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: PHP hit counter statistics? <span class="small">(Page 1 of 1)</span>\

 
H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-20-2003 05:49

Hey all, anyone know a decent free hit counter for php that i could download and try out?

Thanks

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-20-2003 05:56

Actually, ignore that unless you have something that you think is extrememly impressive :P, i think ill try write my own it seems pretty simple...

On that not can you use mqSQL databases on a windows server at all? Otherwise i guess ill just do it to a access db

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 08-20-2003 09:29

depends. I assume you're meaning mysql.

using php? then you can easily access a mysql server. or a mssql server for that matter.
With the 'old' asp, I'm not sure, you might be stuck with either mssql or access.

with the newer asp, by default only mssql, I believe.

and yes, counter scripts are pretty much trivial, especially with a sql database.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 08-20-2003 09:58

I would like to point out that the best statistics come from server log files...


H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-20-2003 11:53

Yeh i mean mySQL, i wasnt sure if it was purely linux based, thanks for that.

Server log files? i guess they would contain all of the details... Do you normally have access to these if your going through a web host?



[This message has been edited by H][RO (edited 08-20-2003).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 08-20-2003 12:05

Some web hosts give you access to server log files. Although, the most common situation is that web host provides you with already generated statistics (from log files) by tools like WebAlizer or Analog. You'll have to check with your web host for more details...


H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-20-2003 14:39

Ah ok cool...

Well ive been thinking about it and its actually probably easy to do a php/database counter anyhow. If you did it in a certain way you could store counts by date/month or watever and generate statistic reports based on the data.

Actually pretty simple i guess.

Anyone know if there is an issue with 2 people going to the page at the same time, therefor having to access the database at the same time. Its not normally a problem with reading, but writing could be an issue i guess =/.

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 08-22-2003 05:56

Na that wouldn't be a problem, the database can be accessed an enter the data pretty fast

2 people would have no effect on it at all, 50 at the same time might lag it a bit, depending on your host.

Synthetic's Chess Player Page

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-22-2003 11:42

Ahh ok cool sweet thanks for that, ill ahve to see how it goes. The current host im using has statistics anyhow from the log file, im not sure how accurate they really are..

Anyone know what the different stats mean?

It has hits, visits etc.. Hits is really high like 6,000 for the month, but visits is only 1,000 so im not sure the difference, maybe visits is unique hits im not sure =/

Moon Shadow
Paranoid (IV) Inmate

From: Rouen, France
Insane since: Jan 2003

posted posted 08-22-2003 12:20

The hits represent the number of files requested on your domain. If for example you have 10 images on your page, a single visit will result in 10 + 1 (the page) hits.

The number of visits is interesting, although less detailed than the precise hits on all your files. Checking the number of hits your index page had should give you also the number of visits.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 08-22-2003 12:24

well, hits will count every single element on a page (ie. images), will visits usually should only count requested html pages.

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-25-2003 14:11

Ahh ok... so a visit is a unique ip per page? I was hoping it would be visits per domain, i read some php counter stuff where you do unique hits by ip, which is really the stat your after imo.

Nathus
Nervous Wreck (II) Inmate

From: Minnesota
Insane since: Aug 2003

posted posted 08-26-2003 00:34

I've been working on a pretty simple hit tracking program. it uses MySQL to store info from the visitor each time a page is loaded. There is a stat view, that you can see how many times a page was viewed, and how many unique visitors there was each day, shown in a calendar, then there's also a detailed view that allows you to see the information such as referer, host, and time the person visited. Currently there's only info for the last few days on my site, but it is capable of displaying other months than the current one.

It doesn't have any advanced stuff like session tracking and whatnot, as all I initially made it for was to put on clients web sites while I was working on them, so I could make sure when I told them to look at the progress so far, they actually did

You can see an example of it running here
I am working on packaging it up, and writing a simple setup script atm.

*edit* install script working (I think). can get the counter here



[This message has been edited by Nathus (edited 08-26-2003).]

H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-26-2003 06:54

Yeh i was thinking of doing the same sort of thing, what you have looks pretty cool. I guess because alot of hosting controls seem to have the statistics built in it may not be neccessary, but this way i guess you can customize it exactly how you want.

« BackwardsOnwards »

Show Forum Drop Down Menu