note 38002 deleted from function.ip2long by nlopess
| From: | nlopess@php.net | Date: | Sat, 07 Feb 2004 10:02:19 +0000 |
| Subject: | note 38002 deleted from function.ip2long by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64755@lists.php.net to get a copy of this message | ||
Note Submitter: pipen@beast.tu.kielce.pl
----
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.