You are here: Re: How do I send HTML and a file for 'Save-As' at the same time? « PHP Programming Language « IT news, forums, messages
Re: How do I send HTML and a file for 'Save-As' at the same time?

Posted by Daedalus.OS on 11/11/47 11:17

This should work in all recent browser. Content-Disposition is stated as
experimental but is implemented in most (if not all) major browser.

I have tested it with IE6, FireFox 1.0, Netscape7.02, Opera7.5.4,
Mozilla1.7.3
I know there were issues on some browser that would result in displaying the
file if the content-type was a known text type or that would download the
file with an php or html extension.

I don't remenber wich browser and version have wich issue (I think IE5.5 was
one of those and FireFox 0.9 was the other), but I remember I was using
application/octet-stream as content-type for text file to solve this.

Dae


"John Dunlop" <usenet+2004@john.dunlop.name> wrote in message
news:MPG.1d0415903871ab8b989688@news.ntlworld.com...
> Daedalus.OS wrote:
>
>> Content-Disposition: attachment; filename="destination_file_name.ext"
>
> do browsers on the whole take heed of that line do you know?
>
> --
> Jock

 

Navigation:

[Reply to this 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

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