note 27903 deleted from function.header by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:38:24 +0000 |
| Subject: | note 27903 deleted from function.header by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55632@lists.php.net to get a copy of this message | ||
Note Submitter: sgustafso@hotmail.com
----
It took me awhile to figure this one out, but using output buffering (at least for ob_gzhandler)
with MSIE 6 can keep the filename parameter of Content-Disposition from working properly (Not sure
about other browsers...). In my case, I had a file download.php with this:
header("Content-Type: application/x-ms-download");
header("Content-Disposition: attachment; filename=theme.xmb");
ob_start("ob_gzhandler")
Normally, that would offer a default filename of theme.xmb. But in this case, with the ob_start on,
the browser attempts to name the file by the url; it wanted to name the file download, with the file
type being a document.