$xml = simplexml_load_file('http://ipinfodb.com/ip_query.php?ip=' . $_SERVER['REMOTE_ADDR']); var_dump($xml);