Re: cvs: phpweb /include ip-to-country.inc

From: Date: Sat, 24 May 2003 20:09:51 +0000
Subject: Re: cvs: phpweb /include ip-to-country.inc
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-18037@lists.php.net to get a copy of this message
On Sat, 24 May 2003, Jacques Marneweck wrote: > // Find the index to start search from > $idx = i2c_search_in_index($ipn); > + // For some odd reason I need to remove 2 from the idx value to > + // get the country of rasmus and various other IP's to lookup. > + $idx--; > + $idx--; That seems like an odd fix. Would be better to figure out why the function is off by 2. Also, to decrement a var by 2, use: $idx-=2; -Rasmus

« previous php.mirrors (#18037) next »