note 36139 added to function.header
| From: | Jurgen Westerhof | Date: | Sun, 28 Sep 2003 01:07:12 +0000 |
| Subject: | note 36139 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57200@lists.php.net to get a copy of this message | ||
Suggested filename on download:
If you want to use the header() command for file downloads, please note that when
zlib.output_compression in the php.ini is turned 'On' a filename suggested with
Content-Disposition will be ignored (at least with MS IE 6.00, with Mozilla Firebird and Netscape it
works fine, so far)
The workaround is:
<?PHP
if(ini_get('zlib.output_compression'))
ini_set('zlib.output_compression', 'Off');
// rest of the code, headers, fileread etc....
?>
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36139
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36139&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36139&report=yes