[thelist] Finding the users country of origin

Kristian Duske ml.duske at gmx.net
Sun Feb 24 16:07:00 CST 2002


> 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)

You can probably evaluate the "Accept-Language" header(s) that a browser
sends to the server. More info (assuming you are using PHP:
http://www.php.net/manual/en/language.variables.predefined.php. Scroll down
to $HTTP_ACCEPT_LANGUAGE.

Regards
Kristian




More information about the thelist mailing list