Re: Generating an Excel file?
| From: | Ben Ramsey | Date: | Tue, 20 Jan 2004 02:42:21 +0000 |
| Subject: | Re: Generating an Excel file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175098@lists.php.net to get a copy of this message | ||
Alright. You've all given some great suggestions, and I'm going to track them down. But, for now, I'm settling for creating a CSV file.
My next question: How do I get the file to download without the ".php" extension on the end? It's downloading it as "filename.csv.php".
The code to right my headers is:
header("Content-Type: text/comma-separated-values");
header("Content-Disposition: attachment; filename=$name.csv");
Do I need to add another header?
-Ben