Reply to Re: Forced download issue with IE6

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация