note 14730 rejected and deleted from function.long2ip.php by alindeman
| From: | alindeman@php.net | Date: | Sun, 12 Aug 2001 16:15:37 +0000 |
| Subject: | note 14730 rejected and deleted from function.long2ip.php by alindeman | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16605@lists.php.net to get a copy of this message | ||
Just tried the code from Joerg Krause's comment. As for PHP 4.0.6 it doesn't work
correctly. Looks like ip2long doesn't accept unsigned ints.
Output:
-1062706151 ==> 192.168.100.25
3232261145 ==> 128.0.0.0