gethostbyaddr
gethostbyaddr
Get the Internet host name corresponding to a given IP address
**gethostbyaddr** string $ip
Returns the host name of the Internet host specified by
.
ip
ipThe host IP address.
Returns the host name on success, the unmodified
on failure, or false on malformed input.
ip
Voorbeeld: A simple example
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
echo $hostname;
?>
gethostbyname``gethostbynamel