Example #1 A HttpDeflateStream example
<?php$stream = new HttpDeflateStream( HttpDeflateStream::TYPE_GZIP | HttpDeflateStream::LEVEL_MAX | HttpDeflateStream::FLUSH_SYNC);echo $stream->update($data);echo $stream->finish();?>