gethostbyaddr
Get the host name corresponding to the specified IP address
gethostbyaddr()
function returns the domain name of the given IP address.
A simple gethostbyaddr()
example:
<?php $host = gethostbyaddr ( $_SERVER [ "REMOTE_ADDR" ] ) ; echo $host ; ?>
gethostbyaddr ( ipaddress )
parameter | describe |
---|---|
ipaddress | Required. Specify the IP address. |