CXIII. Zlib Compression Functions

Úvod

Poznámka :

Požadavky

Instalace

Verze PHP pro Windows vestavěnou podporu pro toto rozšíření . K použití těchto funkcí není třeba načítat žádná další rozšíření .

Poznámka :

Konfigurace běhu

Chování těchto funkcí je ovlivněno nastavením parametrů v php.ini .

Tabulka 1 .

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

zlib.output_compression boolean / integer

Poznámka: output_handler must be empty if this is set 'On' !

zlib.output_compression_level integer

zlib.output_handler string



Typy prostředků

Toto rozšíření nemá definován žádný typ prostředku ( resource ) .

Předdefinované konstanty

Tyto konstanty jsou definovány tímto rozšířením a budou k dispozici pouze tehdy , bylo-li rozšíření zkompilováno společně s PHP nebo dynamicky zavedeno za běhu .

FORCE_GZIP ( integer )

FORCE_DEFLATE ( integer )

Příklady

Příklad 1 .




Obsah
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