Get Country From IP
PHP:
-
$country = trim(strip_tags(file_get_contents('http://www.melissadata.com/lookups/iplocation.asp?ipaddress='.$ip)));