Date: 08/15/00
- Next message: Joao Prado Maia: "Re: [PHP] odd addition error<>?"
- Previous message: Sam Masiello: "RE: [PHP] odd addition error<>?"
- In reply to: Andrew Etemadi: "[PHP] .txt Downloads from a .php File"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Have the link be .....download.php3/download.txt
The server knows download.php3 is a file not a directory, so it runs
that. The browser on the other hand doesn't know the directory structure
of the server so it thinks download.php3 is a directory and the file is
download.txt and when a saveas box comes up, that's the name it uses.
Andrew Etemadi wrote:
>
> 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.
---------------------- To send e-mail to me replace the domain name with djdesign.com The phony "anti.spam" domain is used to fool newsgroup e-mail address harvestor 'bots. ----------------------
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joao Prado Maia: "Re: [PHP] odd addition error<>?"
- Previous message: Sam Masiello: "RE: [PHP] odd addition error<>?"
- In reply to: Andrew Etemadi: "[PHP] .txt Downloads from a .php File"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

