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

From: Date: Thu, 10 Aug 2006 20:38:31 +0000
Subject: Re: Create an EUC-JP encoded file just for download, not to be kept on server
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-240501@lists.php.net to get a copy of this message
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

« previous php.general (#240501) next »