note 88345 modified in function.ip2long by danbrown

From: Date: Tue, 20 Jan 2009 22:15:37 +0000
Subject: note 88345 modified in function.ip2long by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149556@lists.php.net to get a copy of this message
Convert IP to unsigned long <?php //$strIP : IP in String-format //$lngIP : IP in unsigned long if (($lngIP=ip2long($strIP)) < 0){ $lngIP += 4294967296 ;} // ADD 2^32 thats all. ?> --was-- Convert IP to unsigned long //$strIP : IP in String-format //$lngIP : IP in unsigned long if (($lngIP=ip2long($strIP)) < 0){ $lngIP += 4294967296 ;} // ADD 2^32 thats all. http://php.net/manual/en/function.ip2long.php

« previous php.notes (#149556) next »