gethostbyname
(PHP 3, PHP 4 , PHP 5)
gethostbyname --
Retourne l'adresse IP correspondant à un hôte
Description
string
gethostbyname ( string hostname)
gethostbyname() retourne l'adresse IP
correspondant à l'hôte hostname.
Exemple 1. Exemple avec gethostbyaddr()
<?php $ip = gethostbyname('www.exemple.com');
print $ip; ?>
|
|
Voir aussi
gethostbyaddr().