Re: finding the closest mirror

From: Date: Sun, 26 May 2002 01:03:54 +0000
Subject: Re: finding the closest mirror
References: 1 2 3 4  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10462@lists.php.net to get a copy of this message
On Sun, May 26, 2002 at 02:48:23AM +0200, Trond Arve Nordheim wrote: > On Sat, May 25, 2002 at 04:55:34PM -0700, Jim Winstead wrote: > > On Sat, May 25, 2002 at 04:30:38PM -0700, Rasmus Lerdorf wrote: > > > Worked nicely for me. Seemed fast too. > > it should be, there's no reverse-dns lookup involved. (it's just a > > binary search on a ~1MB data file based on the ip address.) > > I get this: > Warning: Wrong parameter count for preg_replace() in /home/jimw/public_html/closest-mirror.php > on line 10 > ip: > country code: US > > ..i'm located in Norway, and my IP is 217.8.158.164... > I'm also connecting through a transparent squid proxy, so my REMOTE_ADDR probably > isn't the IP above, but 172.16.0.11... oops, i forgot to save the file i was editing before walking away from my computer. give it another try. :) jim

« previous php.mirrors (#10462) next »