note 38002 added to function.ip2long
| From: | pipen at beast dot tu dot kielce dot pl | Date: | Thu, 04 Dec 2003 08:48:56 +0000 |
| Subject: | note 38002 added to function.ip2long | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61380@lists.php.net to get a copy of this message | ||
Just a quick note:
ip2long() evaluates to -1 when invalid string given.
ip2long( '255.255.255.255' ) evaluates to -1 also.
Therefore do *NOT* use ip2long if you want to check
if the ip string is valid or not.
----
Manual Page -- http://www.php.net/manual/en/function.ip2long.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38002
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38002&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38002&report=yes
Search -- http://master.php.net/manage/user-notes.php