note 24157 added to function.ob-gzhandler
| From: | psychones at ifrance dot com | Date: | Thu, 08 Aug 2002 09:18:14 +0000 |
| Subject: | note 24157 added to function.ob-gzhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34515@lists.php.net to get a copy of this message | ||
Problem revelate by xn@bnw.com
cause real problem when you have a global call
to ob_gzhandler , for example in an include configuration
file , and you want send a non gzip content , for any reason ...
To resolve it ,
put this after your global call to ob_gzhandler
include("conf_that_call_ob_gzhandler.php");
-->ob_end_clean();
-->header("Content-Encoding: none");
If you try to overload the header before the the ob_gzhandler call
or during the buffering output , it will not work .
( probably erase at the call of ob_gzhandler and not allow during
buffering ).
Hope this help
--
http://www.php.net/manual/en/function.ob-gzhandler.php
http://master.php.net/manage/user-notes.php?action=edit+24157
http://master.php.net/manage/user-notes.php?action=delete+24157
http://master.php.net/manage/user-notes.php?action=reject+24157