note 55510 deleted from function.header by tularis
| From: | tularis@php.net | Date: | Fri, 20 Apr 2007 14:45:17 +0000 |
| Subject: | note 55510 deleted from function.header by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125661@lists.php.net to get a copy of this message | ||
Note Submitter: boris at psyonline dot ru
----
On some servers IE tries to use the script name rather than the supplied filename in the
Content-Disposition header. But it works correctly with unknown Content-Encoding! :-)
<?php
header("Content-Encoding: AnyTrash");
header("Content-Disposition: attachment; filename=download.txt");
echo "Content";
?>