Re: [PHP] Downloads, headers and binary data

2001-01-19 Thread Rick Hodger
"Juan Germano" <[EMAIL PROTECTED]> wrote in message 004b01c081f3$46be8160$ddf90dd1@juangerm">news:004b01c081f3$46be8160$ddf90dd1@juangerm... > Hi. I'm trying to write a script to download a mp3 file. I did this: > > $filesize=filesize($filename); > header("Content-disposition: attachment;filename

Re: [PHP] Downloads, headers and binary data

2001-01-19 Thread jeremy brand
2001, Juan Germano wrote: > Date: Fri, 19 Jan 2001 05:38:48 -0300 > From: Juan Germano <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] Downloads, headers and binary data > > Hi. I'm trying to write a script to download a mp3 file. I did this: > > $fi

[PHP] Downloads, headers and binary data

2001-01-19 Thread Juan Germano
Hi. I'm trying to write a script to download a mp3 file. I did this: $filesize=filesize($filename); header("Content-disposition: attachment;filename=".basename($filename)); header("Content-type: application/octetstream"); header("Content-Transfer-Encoding: binary"); header("Pragma: no-cache"); he