Re: Download link points to main site.

From: Date: Wed, 19 Sep 2001 12:39:55 +0000
Subject: Re: Download link points to main site.
References: 1 2 3  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6420@lists.php.net to get a copy of this message
> I wrote: > >> Your download link points back to > >> > >> http://www.php.net/do_download.php?download_file=php-4.0.6.tar.gz > >> &source_site=php.he.net > > >> It seems to be this way on all the mirrors I checked. > >> Seeing as php.net was unreachable from where I was, > > webmaster@php.net wrote: > >Well, php.net is not working me either, so when it will > >work, the downloads will work again on all mirrors. > > My point was that this seems to defeat the whole point > of having mirrors. You have effectively removed the > redundancy the mirrors provide. I understand that > this is for the purpose of collecting stats. However > it may be a good idea to look into handling this > in another fashion, or providing an alternate link > in the case of the main php.net site being down. Indeed, and since www.php.net is down for almost a day now: A fix would be to always run the mirror's do_download, and let the do_download.php itself request a logging-url from www.php.net for the logging. If php.net is down, no logging occurs, but download continues. Another idea would be to deny downloads from www.php.net, if people select the www.php.net's do_download, it takes a random mirror. (possibly smartly by means of checking the top-level domain of the user). Attached is a fix which implements my first suggesting. One added file to phpweb-root, and a diff of the current files. --Jeroen

Attachment: [application/octet-stream] fix_downloads.diff
Attachment: [application/octet-stream] log_download.php
« previous php.mirrors (#6420) next »