fsockopen
<<<
gethostbyaddr gethostbyname
>>>

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.16 gethostbyaddr() Retourne le nom d'hôte correspondant à une IP

[ Exemples avec gethostbyaddr ]   PHP 3, PHP 4

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']);
  
print
$hostname;
?>

Voir aussi gethostbyname .

<< gethostbyaddr >>
fsockopen Réseau gethostbyname