downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Request OptionsHttpDeflateStream::__construct>
Last updated: Thu, 26 Jun 2008

The HttpDeflateStream class

Class synopsis

HttpDeflateStream
class HttpDeflateStream {
public void __construct ([ int $flags = 0 ] )
public HttpDeflateStream factory ([ int $flags = 0 [, string $class_name = 'HttpDeflateStream' ]] )
public string finish ([ string $data ] )
public string flush ([ string $data ] )
public string update ( string $data )
}

Class Members

Predefined Constants

Type Name Description
int TYPE_GZIP gzip encoding
int TYPE_ZLIB zlib AKA deflate encoding
int TYPE_RAW raw deflate encoding
int LEVEL_DEF default compression level
int LEVEL_MIN minimum compression level
int LEVEL_MAX maximum compression level
int STRATEGY_DEF default strategy
int STRATEGY_FILT filtered strategy
int STRATEGY_HUFF Huffman strategy
int STRATEGY_RLE RLE strategy
int STRATEGY_FIXED fixed strategy
int FLUSH_NONE no forced flush
int FLUSH_SYNC synching flush
int FLUSH_FULL full flush

Examples

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();
?>

Table of Contents



add a noteadd a note User Contributed Notes
The HttpDeflateStream class
There are no user contributed notes for this page.




<Request OptionsHttpDeflateStream::__construct>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs