Source Code:
(back to article)
<?php $ip_address = "192.0.2.1"; $host_name = gethostbyaddr($ip_address); echo "The host name for IP address $ip_address is $host_name";
Result:
Report an issue