PDA

View Full Version : Gzip?


_
Thu 25th Jan '01, 12:25am
What's the exact name for that gzip compression stuff? I want to see if my webhost has it.

mod_gzip?

Wayne Luke
Thu 25th Jan '01, 10:58am
You will need mod_gzip for Apache and PHP compiled with zlib 1.0.9+ support.

Sharg
Thu 25th Jan '01, 11:06pm
I don't think mod gzip is required for 2.0 compression.

Wayne Luke
Thu 25th Jan '01, 11:13pm
I was just relaying what I read on one of the PHP sites.

John
Fri 26th Jan '01, 12:21pm
You will need PHP 4+ and the zlib library compiled with PHP.

John

John Harrison
Fri 26th Jan '01, 1:04pm
Umm so any PHP 4 Version will do?

I have PHP 4.3?

John Harrison
Fri 26th Jan '01, 1:06pm
Umm I just checked my PHP Version and I am surpised to see I have PHP 4.4 :)

Denjin
Tue 30th Jan '01, 12:25am
Is this any different than what you can do w/PHP 4.0.4pl1 and putting output_handler = ob_gzhandler into your php.ini file?

Just curious,
Chris

MattR
Tue 30th Jan '01, 1:29am
Originally posted by Denjin
Is this any different than what you can do w/PHP 4.0.4pl1 and putting output_handler = ob_gzhandler into your php.ini file?

Just curious,
Chris

Chris,

It is my understanding that you actually have to set up mod_gzip on Apache before you can have it compress PHP. I could be wrong, but I had mod_gzip installed and the only way I could make PHP code compressed is if I added the output_handler line as you suggested above. I never tested it without mod_gzip but with the output_handler line.

Denjin
Tue 30th Jan '01, 1:40am
Do you know any way to test if it is compressing? I am doing this currently on my board (sort of in testing). Be nice to know if I need to add mod_gzip. I tried to add it anyway (just added the .so and edited httpd.conf), but it complained about Apache, and I've been too lazy to recompile Apache...

Chris

MattR
Tue 30th Jan '01, 1:42am
http://leknor.com/code/gziped.php

Denjin
Tue 30th Jan '01, 1:45am
Thanks! It says my page is not gzipped...I guess it guesses the compression of the page.

Still, php never mentions needing mod_gzip to work, it only says you need to have zlib installed. I'll ask some php people I think. I might be crazy, but I swear my pages load faster now. LOL

Chris

Denjin
Thu 1st Feb '01, 10:13am
I tried the site and had it test http://vbulletin.com/forum, and it said it's not gzipped.

Does anyone have the definitive word? Does php compression w/zlib not need mod_gzip on apache?

Chris

JamesUS
Thu 1st Feb '01, 12:33pm
You need to specify the full path on that site, eg:
Host: vbulletin.com
Path: /forum/index.php

That returned the message that it is gzipped for me

Denjin
Thu 1st Feb '01, 12:41pm
Thanks!

Well, on my site I am already using PHP 4.0.4pl1 and putting output_handler = ob_gzhandler into my php.ini file. Whatever changed you guys are doing so that you gzip up 2.0, will my php.ini setting break this? I like it since it helps speed up all the php on my site.

Thanks,

Chris

John
Thu 1st Feb '01, 1:28pm
Originally posted by Denjin
Thanks!

Well, on my site I am already using PHP 4.0.4pl1 and putting output_handler = ob_gzhandler into my php.ini file. Whatever changed you guys are doing so that you gzip up 2.0, will my php.ini setting break this? I like it since it helps speed up all the php on my site.

Thanks,

Chris

You can just turn off vBulletin's GZIP feature if there is a problem and just use PHP's built in one.

John

Sharg
Thu 1st Feb '01, 1:42pm
How do they compare ?
Are there any noticable difference between php built in and vb's own ?