Jump to content

IP to Country


bogeyman

Recommended Posts

try reading this code it is the source of php.net country detection.

http://ch2.php.net/source.php?url=/include/ip-to-country.inc

it has two includes that both can be access at:

http://php.net/backend/ip-to-country.db

http://php.net/backend/ip-to-country.idx

it should tell you the country if you go

i2c_go();

echo $COUNTRY;

beware it also sets a cookie to record the country for one week so it doesn't have to search the database all the time.

 

Scott.

Link to comment
https://forums.phpfreaks.com/topic/133039-ip-to-country/#findComment-691909
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.