note 35056 added to function.gethostbyaddr
| From: | info at rack1 dot php dot net | Date: | Mon, 18 Aug 2003 06:49:03 +0000 |
| Subject: | note 35056 added to function.gethostbyaddr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54557@lists.php.net to get a copy of this message | ||
Some users (a minority) will present IP addresses to the browser which cause problems with
gethostbyaddr. I had a complaint from a user today about this.
This gives an error "Warning: Address is not in a.b.c.d form" and if you try to send any
headers after this error has been generated, then, naturally, the results are unpleasant on the
user's screen.
The simplest way I found to get round this problem which affects less than 1% of users is to put a
"@" in front of gethostbyaddr and not lose any more sleep over it :-)
----
Manual Page -- http://www.php.net/manual/en/function.gethostbyaddr.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35056
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35056&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35056&report=yes