note 15387 added to function.ip2long
| From: | mlong at mlong dot org | Date: | Fri, 07 Sep 2001 17:10:47 +0000 |
| Subject: | note 15387 added to function.ip2long | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17779@lists.php.net to get a copy of this message | ||
If you want a signed long (in my case, for legacy reasons), this seems to work OK:
if ($long > 2147483647) { $long = $long - (2147483648 * 2);
http://www.php.net/manual/en/function.ip2long.php