note 10441 modified in gethostbyname by zak
| From: | zak@php.net | Date: | Wed, 03 Jan 2001 22:33:17 +0000 |
| Subject: | note 10441 modified in gethostbyname by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9358@lists.php.net to get a copy of this message | ||
Beware of whitespace in the sitename!
$sitename = "www.php.net";
$sitename = trim($sitename);
$ipadres = gethostbyname($sitename);
echo $ipadres;
http://www.php.net/manual/function.gethostbyname.php