note 56008 added to ref.zlib
| From: | kasper at johansen dot tdcadsl dot dk | Date: | Sat, 20 Aug 2005 14:12:01 +0000 |
| Subject: | note 56008 added to ref.zlib | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93954@lists.php.net to get a copy of this message | ||
Sometimes it seems that the zlib-header (Content-Encoding: gzip), will not be send automatic.
The obvius solution is to add "header('Content-Encoding: gzip);" to all ones
php-files (since the content actually get compressed, but no header is send).
I have seen this problem on both Debian (stable and testing release) and FreeBSD, so I have
concluded that this must be PHP's bug. Also, I have tried to replace the php.ini, with other
forms of config's, but none have solved the solution with sending the header automaticly.
I someone if you there with a solution, I would be glad to now, since zlib really is a great module
to save bandwidth with (if you are paying money for how much you use, and want to save some :) ).
----
Manual Page -- http://www.php.net/manual/en/ref.zlib.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56008
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56008&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56008&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56008&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56008&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56008&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56008&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56008&report=yes
Search -- http://master.php.net/manage/user-notes.php