HTTP Compression

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

HTTP Compression

Post 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.
Last edited by Kriek on Fri Jan 10, 2003 6:47 pm, edited 2 times in total.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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"
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Post by Kriek »

Yeah, that's what I was thinking. I just needed a second opinion. Thanks for your help.
Post Reply