$url=$_POST;
$ip = gethostbyname($url);
$long1 = ip2long($ip)
if ($long1 == -1 || $long1 == FALSE)
{ echo 'Invalid IP, please try again';
}
else {
print $url;
echo $ip ?>
bu this code i get ip address but i need the country name aslo with this ip address. is thers any function to get country?
thanks