Cent OS 6 / PHP 5.5.11
pear install Net_GeoIP
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
lookupCountryCode(“1.161.19.32”);
// 結果 TW
} catch (Exception $e) {
// 例外処理
}
Cent OS 6 / PHP 5.5.11
pear install Net_GeoIP
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
lookupCountryCode(“1.161.19.32”);
// 結果 TW
} catch (Exception $e) {
// 例外処理
}