note 39728 deleted from function.ip2long by danbrown

From: Date: Fri, 05 Dec 2008 13:45:54 +0000
Subject: note 39728 deleted from function.ip2long by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147702@lists.php.net to get a copy of this message
Note Submitter: theliberal at comcast dot net ---- Doh! That's what I get for copying the wrong code. The correct code is: <?php function ip2base10($ip) { $parts=explode(".",$ip); $base10=($parts[0]<<24)|($parts[1]<<16)|($parts[2]<<8)|($parts[3]); return $base10; } ?>

« previous php.notes (#147702) next »