RE: Manuals and Spiders

From: Date: Wed, 23 Apr 2003 08:20:19 +0000
Subject: RE: Manuals and Spiders
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-16925@lists.php.net to get a copy of this message
> > Well, first it should only be used to recommend a better > mirror site, and to make the local mirror site appear first > in download mirror listings. This service can do no harm this > way, and we can move on to automatic redirection, if things > seem to be working well... > I have thought of a couple of more plans to implement automatic redirection yesterday. But, what you say makes more sense. We should first deploy a version which will just bring the closest mirror on top of the list and do other such small things. This will test the deployment perfectly. Once we are sure everything is working fine, then we can look at the more complex solutions. > BTW ip-to-country seems to be more open as we would be free > to distribute the database via rsync to our mirror sites. If > we go on the ip-to-country way however, then we need to find > out, whether it is quick enough to search in a single CVS > file with PHP, or we need to split the file into segments, > and select the target file first based on the IP, and then > search for the country info... Speed tests are needed... > Speed should not be an issue, since it is an open database. We can actually dump the entire CSV file provided at ip-to-country into a db3 / db3 / cdb / mysql database. Once we properly index the database we should get blazing speeds for each query. We are already using ip-to-country on every page of our website - www.directi.com - to show our "currently serving" statistics table on the left hand side bar of the site. This shows the visitors country flag and statistics about our customers and resellers in that country. We are using an indexed mysql database. We have absolutely no speed issues. - Divyank

« previous php.mirrors (#16925) next »