gethostbyname renvoie... un nom!

From: Date: Fri, 01 Feb 2002 10:54:55 +0000
Subject: gethostbyname renvoie... un nom!
Groups: php.windows 
Request: Send a blank email to php-windows+get-11766@lists.php.net to get a copy of this message
Salut à tous! Le manuel indique sous gethostbyname() : "Retourne l'adresse IP correspondant à un hôte" Mon but est d'obtenir l'adresse IP depuis le nom d'hôte, donc j'ai naïvement décidé de tenter ceci : $adresse = gethostbyname("http://www.blizzard.com"); Et $adresse contient, bien évidemment (?) la valeur http://www.blizzard.com ! Quelqu'un a une idée sur la manière de procéder (et pourrait m'en faire profiter :) ? -Sébastien

« previous php.windows (#11766) next »