Ian Wayne wrote:
>
[...]
>
> /*retrieve filename from url*/
> $current=$REQUEST_URI;
> $url=parse_url($current);
> $fileq=$url[query];
> $file=$fileq.".mov";
>
> /*force download*/
> header("Content-type:application/octet-stream\n");
> header("Content-disposition:attachment; filename=\"$file\"\
On Tue, 19 Mar 2002, Ian Wayne wrote:
> I'm trying to use some header functions to force the browser to download
> quicktime movies. I have a small piece of code that takes the relevant file
> name from the url and then uses that in the header function. This code sits
> in get.php. Unfortunately,
I'm trying to use some header functions to force the browser to download
quicktime movies. I have a small piece of code that takes the relevant file
name from the url and then uses that in the header function. This code sits
in get.php. Unfortunately, all I download when I click the link is get.ph
3 matches
Mail list logo