$client = new SoapClient('http://stigbo.dk/ip2country/ip2country.wsdl'); $res = $client->IpQuery($_SERVER["REMOTE_ADDR"]);and then you can access the values: ctry, cntry, country, mesg by WLOG:
$res->countryThese represents the ISO2 country code, the ISO3 country code, the country name and a status message, respectively.