note 8466 added to ip2long

From: Date: Thu, 14 Sep 2000 00:56:42 +0000
Subject: note 8466 added to ip2long
Groups: php.notes 
Request: Send a blank email to php-notes+get-4873@lists.php.net to get a copy of this message
If you want this function in php3 here's one contribution: function ip2long($dotted){ $dotted = preg_split( "/[.]+/", $dotted); $ip=(double)0; $y=0x1000000; for($i=0;$i<4;$i++){ $ip += ($dotted[$i] * ($y)); $y = ($y >> 8); } return $ip; } http://www.php.net/manual/function.ip2long.php

« previous php.notes (#4873) next »