Page 1 of 1

HTTP Compression

Posted: Fri Jan 10, 2003 5:54 pm
by Kriek
Is it necessary to compile PHP (zlib, gzip) before using ob_gzhandler() ?

Code: Select all

<?php ob_start('ob_gzhandler'); ?>
Or is http compression via the gzip compressor automatically effective upon using ob_gzhandler() ?
I seem to be getting mixed responces on this subject.

Posted: Fri Jan 10, 2003 6:02 pm
by volka
PHP_FUNCTION(ob_gzhandler) is implemented in zlib.c which is only contained within the zlib-module-project. So I vote for "zlib is needed"

Posted: Fri Jan 10, 2003 8:47 pm
by Kriek
Yeah, that's what I was thinking. I just needed a second opinion. Thanks for your help.