note 36139 deleted from function.header by sp
| From: | sp@php.net | Date: | Sun, 03 Jul 2005 13:46:53 +0000 |
| Subject: | note 36139 deleted from function.header by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91354@lists.php.net to get a copy of this message | ||
Note Submitter: Jurgen Westerhof <php at jurgle dot nl>
----
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....
?>