Re: the real problem with the ip-to-country DB / phpweb
| From: | Wez Furlong | Date: | Sun, 25 May 2003 14:01:36 +0000 |
| Subject: | Re: the real problem with the ip-to-country DB / phpweb | ||
| References: | 1 2 3 4 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-18076@lists.php.net to get a copy of this message | ||
OK; the server will sync in around 15 minutes.
I'm taking a look at implementing some C code for the IP lookup to make
it nice and fast; this could be deployed in www.php.net as a PHP
extension, and we can fall back to the current scheme for other mirrors.
You say the DB is screwed up; is the DB we have for php.net using the
same data as the ip-to-country.txt file available in the .zip from the
directi site? If so, is that data flawed also?
--Wez.
On Sun, 25 May 2003, Gabor Hojtsy wrote:
> > I suspected the ip-to-country code was the guilty party.
> > I notice that you have comitted a fix; are you confident that this will
> > work if I turn on rsync on www.php.net again?
> >
> > If so, just let me know and I'll make it happen :)
>
> The ip lookup will not work correctly, as the DB is bogus. But we cannot
> help anything but wait for a new DB (which is what Divyank is working on
> right now).
>
> But the server will not be bogged down with the current code, I am
> confident ;) The search will stop at anytime, when it would be too
> expensive to search in the DB, and return 'NA' [unable to detect] as the
> country code. I believe that my fix greatly reduded the number of
> checked records if the IP is not found. That does not mean you should
> not monitor it, after you turn on rsync again. ;)
>
> Goba
>
>
>