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

2006-08-10 Thread Richard Lynch
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

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

2006-08-10 Thread Richard Lynch
On Wed, August 9, 2006 11:15 pm, Richard Lynch wrote: > On Wed, August 9, 2006 11:20 am, Dave M G wrote: >> How do I create a file that the user saves, and is not stored on the >> server? > > http://richadlynch.blogger.com Curses! Foiled again! Can't even type my own name :-v http://richardlync

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

2006-08-09 Thread Dave M G
Robert, Ray, Richard, Thank you all for responding with helpful advice. Robert said: It's all about the headers... header( "Content-type: text/csv" ); header( "Content-disposition: inline; filename=$filename" ); Ah... that's something I think I never would have figured out wi

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

2006-08-09 Thread Richard Lynch
On Wed, August 9, 2006 11:20 am, Dave M G wrote: > How do I create a file that the user saves, and is not stored on the > server? http://richadlynch.blogger.com -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

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

2006-08-09 Thread Ray Hauge
On Wednesday 09 August 2006 11:20, Dave M G wrote: > PHP List, > > In the last stage of my current script, I need to take a bunch of data > from the database and put it into a text file for the user to save to > their computer and import into an application. > > The file being created is just a lis

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

2006-08-09 Thread Robert Cummings
On Thu, 2006-08-10 at 01:20 +0900, Dave M G wrote: > PHP List, > > In the last stage of my current script, I need to take a bunch of data > from the database and put it into a text file for the user to save to > their computer and import into an application. > > The file being created is just a

[PHP] Create an EUC-JP encoded file just for download, not to be kept on server

2006-08-09 Thread Dave M G
PHP List, In the last stage of my current script, I need to take a bunch of data from the database and put it into a text file for the user to save to their computer and import into an application. The file being created is just a list of Japanese words and definitions delineated by tabs.