Posted by Rik on 07/13/06 01:51
Simon Rigby wrote:
> Hi folks,
>
> I appreciate that this topic of forced downloads has been discussed in
> various threads but my situtation is a little different to those that
> I have come across and am experiencing a wierd issue in IE6.
>
> Essentially I am executing a select query against a MySql database and
> taking the result of that query and building a csv stream on the fly
> to send to the browser as a forced download.
>
> I have a function which has been cobbled together from a few internet
> sources. Code below:
I don't know wether it's the problem but this:
> $mimetype = 'application/force-download';
> header("Content-Type: " . $mimetype);
Is something that's very bad practise IMO.
This is normally enough for me:
> header("Content-Disposition: attachment; filename=\"" . $name .
> "\";" );
Grtz,
--
Rik Wasmus
[Back to original message]
|