note 29100 added to function.ip2long

From: Date: Sun, 02 Feb 2003 13:00:17 +0000
Subject: note 29100 added to function.ip2long
Groups: php.notes 
Request: Send a blank email to php-notes+get-43287@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!!! -- http://www.php.net/manual/en/function.ip2long.php http://master.php.net/manage/user-notes.php?action=edit+29100 http://master.php.net/manage/user-notes.php?action=delete+29100 http://master.php.net/manage/user-notes.php?action=reject+29100

« previous php.notes (#43287) next »