note 9911 rejected and deleted from ip2long by zak

From: Date: Fri, 01 Dec 2000 03:24:11 +0000
Subject: note 9911 rejected and deleted from ip2long by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-8314@lists.php.net to get a copy of this message
Has anyone gotten this to work in PHP4? Using 4.0.3pl1, I always get a negative number from this function - even using the example code provided. It converts www.php.net into -789091653. I tried to recreate this function manually using decbin() and bindec(), but I get the same results. I think it has to do with bindec() being limited to 31 bits (I believe an IP address is 32...) Any thoughts? Anyone?

« previous php.notes (#8314) next »