note 35162 added to function.gethostbyname
| From: | adams at rack1 dot php dot net | Date: | Thu, 21 Aug 2003 17:34:52 +0000 |
| Subject: | note 35162 added to function.gethostbyname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54829@lists.php.net to get a copy of this message | ||
Ok found out what it is in FreeBSD the
/etc/hosts file has
xxx.xxx.xxx.xxx www.domain.com www
xxx.xxx.xxx.xxx www.domain.com.
just change these to what you need or correct ones
and thats what it uses to figure out the ips if its in that file.
So if you wanted to you could fake names in there so they resolve with the ip wanted.
----
Manual Page -- http://www.php.net/manual/en/function.gethostbyname.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35162
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35162&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35162&report=yes