note 41727 added to function.ob-gzhandler
| From: | edcostello at rn2 dot php dot net | Date: | Wed, 21 Apr 2004 01:34:55 +0000 |
| Subject: | note 41727 added to function.ob-gzhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68402@lists.php.net to get a copy of this message | ||
I've noticed that ob_gzhandler appears to return the length of the buffer (in hex) and that
this gets pre-pended to the output. Is there any way to trap this value (perhaps to use it in
Content-length)?
My code is basically:
ob_start('ob_gzhandler')
...print various things to the buffer
while (@ob_end_flush())
I get back a stream of data which starts with the size of the compressed file in hex, then a
newline, then the compressed data, then another newline, then '0'.
----
Manual Page -- http://www.php.net/manual/en/function.ob-gzhandler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41727
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41727&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41727&report=yes
Search -- http://master.php.net/manage/user-notes.php