Re: [PHP] PHP - Forced header downloads

2002-03-20 Thread Rénald CASAGRAUDE
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\"\

Re: [PHP] PHP - Forced header downloads

2002-03-19 Thread Miguel Cruz
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,

[PHP] PHP - Forced header downloads

2002-03-19 Thread Ian Wayne
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