note 10441 added to gethostbyname
| From: | mallsop at ind dot net | Date: | Wed, 03 Jan 2001 22:18:41 +0000 |
| Subject: | note 10441 added to gethostbyname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9353@lists.php.net to get a copy of this message | ||
Beware of whitespace in the sitename!
$sitename = trim(www.php.net);
$ipadres = gethostbyname($sitename);
echo "$ipadres";
http://www.php.net/manual/function.gethostbyname.php