CXIII. Zlib Compression Functions

Introduction

Huomaa :

Requirements

Installation

Huomaa :

Runtime Configuration

Taulu 1 .

For further details and definition of the PHP_INI_* constants see ini_set() .

zlib.output_compression boolean / integer

Huomaa: output_handler must be empty if this is set 'On' !

zlib.output_compression_level integer

zlib.output_handler string



Resource Types

Tämä laajennus ei määrittele yhtäkään resurssi-tyyppiä .

Predefined Constants

These constants are defined by this extension , and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime .

FORCE_GZIP ( integer )

FORCE_DEFLATE ( integer )

Examples

Esimerkki 1 .




Sisällys
gzclose -- Close an open gz-file pointer
gzcompress -- Compress a string
gzdeflate -- Deflate a string
gzencode -- Create a gzip compressed string
gzeof -- Test for end-of-file on a gz-file pointer
gzfile -- Read entire gz-file into an array
gzgetc -- Get character from gz-file pointer
gzgets -- Get line from file pointer
gzgetss -- Get line from gz-file pointer and strip HTML tags
gzinflate -- Inflate a deflated string
gzopen -- Open gz-file
gzpassthru -- Output all remaining data on a gz-file pointer
gzputs -- Write to a gz-file pointer
gzread -- Binary-safe gz-file read
gzrewind -- Rewind the position of a gz-file pointer
gzseek -- Seek on a gz-file pointer
gztell -- Tell gz-file pointer read/write position
gzuncompress -- Uncompress a deflated string
gzwrite -- Binary-safe gz-file write
readgzfile -- Output a gz-file