Re: Re: file downloads (again)
| From: | Jason Wong | Date: | Mon, 17 Jun 2002 11:08:08 +0000 |
| Subject: | Re: Re: file downloads (again) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102492@lists.php.net to get a copy of this message | ||
On Monday 17 June 2002 18:50, Justin French wrote:
> Hi John,
>
> Thanks for the reply.
>
> I'd say the lack of passthru() was one of my many problems :)
>
> I don't have access to dirs outside the web root, but I do have the ability
> to add .htaccess files, so I'll be able to refuse direct requests to the
> files.
>
>
> The fact that I can't send the file as an "attachment" WHILE sending the
> HTML page puzzles me a bit, because *exactly that* happens on
> download.com...
>
> You click on "download now", and you get a new HTML page, and a compressed
> file comes through to you with a download window about 1-3 seconds later.
Those usually work by using a META tag to refresh to the actual download
script. View source of said page to find out how it works.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Yinkel, n.:
A person who combs his hair over his bald spot, hoping no one
will notice.
-- Rich Hall, "Sniglets"
*/