Re: .txt Downloads from a .php File

From: Date: Tue, 15 Aug 2000 19:15:39 +0000
Subject: Re: .txt Downloads from a .php File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11860@lists.php.net to get a copy of this message
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. ----------------------

« previous php.general (#11860) next »