[thelist] Finding the users country of origin

R.Livsey R.Livsey at cache-22.co.uk
Sun Feb 24 12:37:01 CST 2002


> Here's two options for you; do it yourself or have someone
> else do it for you.  :-)
>
> If you want someone else to do it for you, I recommend:
http://www.nedstat.com/EN
>

Well, Im gonna be rolling my own (already done most of it) as Im doing
some funky graphical stuff with the logs. GD representation of most
travelled paths etc.

> I would recommend this approach (analyzing your server logs) as
opposed to rolling your own... > getting into reverse DNS lookup and
such can be a complete pain in the butt.

I want to do it the way thecounter.com does it (code embedded in an
image call) because then I can get stuff like screen res etc..

I have it generating an image that you include on the page, ie <img
src="stats.php"> and then that logs them into a database. Im just trying
to work out which HTTP header to use that will have the req info in to
work out their country. Its not essential, but would be an interesting
read :o)

> David
> www.confluentforms.com

Cheers

--
R.Livsey
[ PHP | Perl | mySQL | Java ]
w : cache-22.co.uk
e : R.Livsey at cache-22.co.uk
m : +447764 685 701
i : 37530949

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/2002





More information about the thelist mailing list