Re: php mirrors
| From: | Jeroen van Wolffelaar | Date: | Sun, 28 Oct 2001 23:00:07 +0000 |
| Subject: | Re: php mirrors | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-7236@lists.php.net to get a copy of this message | ||
On Sun, 28 Oct 2001, Hojtsy Gabor wrote:
> > > Note: I attached the patch again, and don't forget to add
> log_download.php
> > > too...
> >
> > Sorry, did cvs diff -l by habit, I now attached the full patch.
>
> OK, I applied your patch, with some minor modifications.
> It works on www.php.net and on hu.php.net (athough the fopen
> adds some time to the download).
It shouldn't... maybe add a flush after the header and before the fopen?
Because the user's browser should go immediately to the file, the mirror
doesn't need the user for logging. In fact the output to the
browser could be closed,
maybe the fopen should be register_shutdown_function'ed? Then it's also
certain that the user won't see any logging errors, as is the whole
purpose of the patch.
--Jeroen
>
> Goba
>
>
Jeroen van Wolffelaar
Jeroen@A-Eskwadraat.nl
http://www.A-Eskwadraat.nl/~jeroen