Get Country From IP
$country = trim(strip_tags(file_get_contents('http://www.melissadata.com/lookups/iplocation.asp?ipaddress='.$ip)));
$start = strpos($stringData,"State or Region");
$stop = strpos($stringData,"Country");
$country = substr($stringData,$start+39,$stop - $start-17);