note 40894 added to function.ob-gzhandler
| From: | mazsolt at yahoo dot com | Date: | Thu, 18 Mar 2004 12:20:32 +0000 |
| Subject: | note 40894 added to function.ob-gzhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67009@lists.php.net to get a copy of this message | ||
if you want to send an output to the browser (which accepts gzip), and you haven't set the
buffering callback ob_start("ob_gzhandler"), you may use the gzencode() function.
header("Content-Encoding: gzip");
echo gzencode("some output", 9, FORCE_GZIP);
----
Manual Page -- http://www.php.net/manual/en/function.ob-gzhandler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40894
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40894&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40894&report=yes
Search -- http://master.php.net/manage/user-notes.php