Forum Moderators: coopster

Message Too Old, No Replies

Country Detection via IP using PHP

or you can just download a text file to work with

         

jatar_k

6:59 pm on May 6, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It would seem that [php.net...] is now using Country Detection.

The PHP.net site and mirror sites now autodetect your country using the Directi Ip-to-Country [ip-to-country.com] Database.

Since this is something we have talked about a few times I figured I would poke around. The above linked site has php tools and downloadable text file for ranges.

Looks like a simple way to get it on a site if you so desire.

daisho

3:01 am on May 7, 2003 (gmt 0)

10+ Year Member



I use IP2Location. I think a very similar thing. They give you an access database, csv file, or mysql dump.

Simple selects to get the country. Works very nice.

daisho.

jatar_k

3:02 am on May 7, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sounds very similar, i haven't looked into this too much but this looks simple.

grahamstewart

3:16 am on May 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See also Apaches content negotiation [httpd.apache.org] to present information based on languages accepted by the user.