.txt Downloads from a .php File
| From: | Andrew Etemadi | Date: | Mon, 14 Aug 2000 17:48:31 +0000 |
| Subject: | .txt Downloads from a .php File | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11641@lists.php.net to get a copy of this message | ||
I'm trying to allow a user to download database as a text file in tab
delimited form.
I am taking to following steps:
1) Set the Content-Type headers
2) Query the database
3) Print the result set to the browser
PROBLEM:
The the file download box displays "download.php3" and I want it to
display "download.txt"
What do I have to change, without creating a new file, in order for the
download box to display "download.txt"?
Thank you for your help.