By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,304 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,304 IT Pros & Developers. It's quick & easy.

getting country stats

P: n/a
My client wants to see stats which tell him the number of hits he's getting
from different countries. I'm coding page hit count stats myself in PHP on
his site, which is simple enough, but haven't dealt with this issue before.
Can anyone give me the basic pointers and functions to use in collecting
this type of data from hits?

thanks
-dg
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"dan glenn" <da********@yahoo.com> wrote in message news:<ji*********************@newssvr13.news.prodi gy.com>...
My client wants to see stats which tell him the number of hits he's getting
from different countries. I'm coding page hit count stats myself in PHP on
his site, which is simple enough, but haven't dealt with this issue before.
Can anyone give me the basic pointers and functions to use in collecting
this type of data from hits?


http://ip-to-country.directi.com/
Jul 16 '05 #2

P: n/a
"dan glenn" <da********@yahoo.com> skrev i en meddelelse
news:ji*********************@newssvr13.news.prodig y.com...
My client wants to see stats which tell him the number of hits he's getting from different countries. I'm coding page hit count stats myself in PHP on
his site, which is simple enough, but haven't dealt with this issue before. Can anyone give me the basic pointers and functions to use in collecting
this type of data from hits?

How about using this (also used by php.net):
http://ip-to-country.directi.com/

An alternative would be to do reverse lookup on the ip's and use the tld,
but the first method is probably better since the latter would not always be
possible..
Martin
Jul 16 '05 #3

P: n/a
KAH
"Martin C. Petersen" <mc*@phys.au.dk> wrote in
news:3f***********************@dtext01.news.tele.d k:
An alternative would be to do reverse lookup on the ip's and use the
tld, but the first method is probably better since the latter would
not always be possible..


Would resolve to .net domains in most cases.

KAH
Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.