note 106828 rejected from function.stream-filter-append by tularis
| From: | tularis@php.net | Date: | Fri, 09 Dec 2011 15:49:03 +0000 |
| Subject: | note 106828 rejected from function.stream-filter-append by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185005@lists.php.net to get a copy of this message | ||
Note Submitter: kmiha at rambler dot ru
----
How to count data length of stream output if length of filtered data not the same?
Example:
$pointer = fopen('php://output','w');
stream_filter_append(
$pointer, 'zlib.deflate',STREAM_FILTER_WRITE, array('level' => 9)
);
fwrite($pointer, 'blablabla');