|
8.83.16 gethostbyaddr()
Retourne le nom d'hôte correspondant à une IP
[ Exemples avec gethostbyaddr ] PHP 3, PHP 4, PHP 5
string
gethostbyaddr (
string
ip_address
)
gethostbyaddr
retourne le nom d'hôte
correspondant à l'IP
ip_address
.
Si une erreur survient, retourne
ip_address
.
| Exemple avec gethostbyaddr |
<?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname; ?>
|
Voir aussi
gethostbyname
et
gethostbynamel
.
|