Re: Create an EUC-JP encoded file just for download, not to be kept on server
| From: | Dave M G | Date: | Thu, 10 Aug 2006 04:40:36 +0000 |
| Subject: | Re: Create an EUC-JP encoded file just for download, not to be kept on server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240435@lists.php.net to get a copy of this message | ||
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 with the manual alone. Now that I know, it seems super easy.
Thanks to everyone - those who responded directly as well as the PHP list in general.
With the right regular expressions and file handling mechanisms in place, I now have a script that does everything I set out for it to do.
Everyone's time and expertise is very much appreciated.
--
Dave M G