Services webmasters
Partenaires
Jeux concours gratuits
 
gethostbyname
<<<
gethostbynamel getmxrr
>>>

7.66 Réseau
7 Index des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Configuration à l'exécution
Types de ressources
Constantes prédefinies
checkdnsrr
closelog
debugger_off
debugger_on
define_syslog_variables
dns_check_record
dns_get_mx
dns_get_record
fsockopen
gethostbyaddr
gethostbyname
->gethostbynamel
getmxrr
getprotobyname
getprotobynumber
getservbyname
getservbyport
ip2long
long2ip
openlog
pfsockopen
socket_get_status
socket_set_blocking
socket_set_timeout
syslog

7.66.18 gethostbynamel() Retourne la liste d'IP correspondante à un hôte.

[ Exemples avec gethostbynamel ]   PHP 3, PHP 4

array  gethostbynamel ( string   hostname )

gethostbynamel retourne la liste d'IP correspondant à l'hôte hostname .

gethostbynamel example

<?php
  $hotes
= gethostbynamel('www.yahoo.com');
  
print_r($hotes);
?>

Voir aussi gethostbyname , gethostbyaddr , checkdnsrr , getmxrr et la page 8 du manuel.

<< gethostbynamel >>
gethostbyname Réseau getmxrr
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -