note 29100 deleted from function.ip2long by nicos
| From: | nicos@php.net | Date: | Tue, 04 Feb 2003 00:27:24 +0000 |
| Subject: | note 29100 deleted from function.ip2long by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-43356@lists.php.net to get a copy of this message | ||
blizz at 0x03 dot net
17-Aug-2002 06:48
Instead of using
sprintf("%u",ip2long($ip))
to get an positive value, you can also use
abs($ip2long($ip)).
Don't use this!!!
if you use abs then the firste bit will be set and your ip address is no longer valid!!!