couldn't get the ip of $hostinfo... aborting. check for typos and try again .";
die();
}
echo "the ip of $hostinfo is $res_ip. wanna check out another one?";
}
if($wanted=='host_name')
{
$res_hostname = gethostbyaddr($hostinfo);
if($res_hostname == $hostinfo || $res_hostname == '')
{
echo "
couldn't get the hostname of $hostinfo... aborting. check for typos and try again .";
die();
}
echo "the hostname of $hostinfo is $res_hostname. wanna check out another one?";
}
if($wanted != 'host_ip' && $wanted != 'host_name')
{
echo "i didn't get what you want... aborting. please try again . ";
}
}
else
{
echo "no host info specified ... aborting. please try again . ";
}
$client_ip = get_client_ip();
echo "
by the way, your current ip is $client_ip
";
PHP?>