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

Reply via email to