note 12473 deleted from function.ip2long by jimw
| From: | jimw@php.net | Date: | Sat, 03 Nov 2001 18:42:49 +0000 |
| Subject: | note 12473 deleted from function.ip2long by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20394@lists.php.net to get a copy of this message | ||
If you are converting an unsigned integer to an ip address and you get "127.255.255.255"
as the result, this should work for you:
if (long2ip($longip) == "127.255.255.255")
{
$longip -= pow(2,32);
}