note 31096 added to function.ob-gzhandler
| From: | php-general at lists dot php dot net | Date: | Wed, 09 Apr 2003 15:47:03 +0000 |
| Subject: | note 31096 added to function.ob-gzhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46419@lists.php.net to get a copy of this message | ||
When using ob_start("ob_gzhandler"), be aware that the output buffer has to be flushed in
order to invoke the ob_gzhandler callback function.
This may not always happen. For example, if you use ob_get_contents() to copy the output buffer to a
string for further manipulation and then silently discard the buffer with ob_end_clean(), the output
buffer is never "flushed" and as a result, the ob_gzhandler callback function is never
invoked. And your pages won't be compressed.
This will be the case, for example, if you use the PHP Fusebox architecture/framework.
--
http://www.php.net/manual/en/function.ob-gzhandler.php
http://master.php.net/manage/user-notes.php?action=edit+31096
http://master.php.net/manage/user-notes.php?action=delete+31096
http://master.php.net/manage/user-notes.php?action=reject+31096