Forum Moderators: coopster

Message Too Old, No Replies

get users's country code from browser

is there a way to get country code from user browser?

         

meldra

11:24 am on Aug 11, 2005 (gmt 0)

10+ Year Member



Greetings,

I am currently trying to determine if there is a way to get a user's country from their browser in a similar fashion to $_SERVER['HTTP_USER_AGENT'], $_SERVER['REMOTE_ADDR'] or get_browser()

Surely there's a way, right?

Thanks in advance,

--
meldra

FiRe

2:36 pm on Aug 11, 2005 (gmt 0)

10+ Year Member



you want to get their IP using $_SERVER['REMOTE_ADDR'] and to map it against a database! see [ip2country.com ] and try searching on google for more info...

jatar_k

4:28 pm on Aug 11, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



that one's actually no longer available and they point to this one

[maxmind.com...]

I use this
[ip-to-country.webhosting.info...]