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...
https://iskablogs.blogspot.com/2014/03/php-get-geo-ip-information.html
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)
{
//
$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)
{
//