Have you tried this?
header("Content-Type: application/x-octet-stream");
header("Content-Description: MP3 file");
David Minor wrote:
> Can anybody tell me why this doesn't work in IE? I need to force download
> mp3 files instead of IE5.5 trying to apply a helper app. This code works
> fine for NN.
>
> // detect for MSIE bug
> if (strstr($HTTP_USER_AGENT, "MSIE"))
> $attachment = "";
> else
> $attachment = " attachment;";
>
> // stream file to user
> header("Content-Type: application/octet-stream");
> header("Content-Disposition:$attachment filename=$filename");
> header("Content-Length: ".filesize($tmp_file));
> header("Content-Transfer-Encoding: binary");
> readfile($tmp_file);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]