Re: .txt Downloads from a .php File
| From: | Thomas Deliduka | Date: | Mon, 14 Aug 2000 21:42:54 +0000 |
| Subject: | Re: .txt Downloads from a .php File | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11690@lists.php.net to get a copy of this message | ||
The only way I know of is to tell it a MIME type that doesn't exist. like:
header("Content-Type: text/x-download-php3");
On 8/14/00 4:55 PM this was written:
> This works perfectly on IE, but on Netscape, the results are just printed to
> the browser.
> Is there a solution that will work for Netscape and IE?
>
> Craig Vincent wrote:
>
>>> 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"?
>>
>> header( "Content-Disposition: attachment; filename=download.txt" );
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/