PHP Get Geo-IP Information

Requests a geo-IP-server to check, returns where an IP is located (host, state, country, town). $ip='94.219.40.96'; pr...

Requests a geo-IP-server to check, returns where an IP is located (host, state, country, town).
$ip='94.219.40.96';
print_r(geoCheckIP($ip));
//Array ( [domain] => dslb-094-219-040-096.pools.arcor-ip.net [country] => DE - Germany [state] => Hessen [town] => Erzhausen )

//Get an array with geoip-infodata
function geoCheckIP($ip)
{
//

Hot in Week

Popular

Archive

item