Re: Create an EUC-JP encoded file just for download, not to be kept on server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, August 9, 2006 11:40 pm, Dave M G wrote:
> Robert said:
>> It's all about the headers...
>>         header( "Content-type: text/csv" );

This only forces a download if the browser has not been configured to
do something special with text/csv

application/octet-stream

is the correct answer to force a download.

>>         header( "Content-disposition: inline; filename=$filename" );

This only works on some browsers, not all browsers.

Unless you actually want to "fix" bug reports for the next 3 years on
this page, with an ever-expanding list of headers that never quite
work right:

http://richardlynch.blogspot.com/

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux