Page 1 of 1

zlib aktiviren

Posted: 2005-01-26 16:12
by koc
hi,
Ich hab php 4.3.10 auf mein Server un nun möchte ich zlib aktivieren.
Ich hab zlib auf dem server auch installiert. In der Php.ini siehts so aus

Code: Select all

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.  If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = Off

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;       directive. Instead, explicitly set the output handler using ob_start().
;       Using this ini directive may cause problems unless you know what script 
;       is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;       and you cannot use both "ob_gzhandler" and "zlib.output_compression". 
;output_handler =0

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP 
;       outputs chunks that are few hundreds bytes each as a result of 
;       compression. If you prefer a larger chunk size for better 
;       performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;       output_handler, or otherwise the output will be corrupted.
zlib.output_compression = 1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
zlib.output_handler =1

Vielen Dank im vorraus

Re: zlib aktiviren

Posted: 2005-01-26 18:24
by andreask2

Re: zlib aktiviren

Posted: 2005-01-26 19:08
by koc
Hi

ja die docu hatte ich gelesen aber dort steht nicht wie ich das installieren kann, dort sind nur die funktionen der zlib gelistet

Re: zlib aktiviren

Posted: 2005-01-26 21:33
by andreask2
In der englischen Variante steht:
Installation

Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR].