I thought I would try out the ability to GZip my PHP pages, so that they would be sent 
quicker and use less of my bandwidth :)

Anyway I have found the following tutorials and information on this:
http://www.zend.com/zend/art/buffering.php
http://www.php.net/manual/en/function.ob-gzhandler.php
http://www.phpbuilder.com/columns/piergiorgio20010321.php3?page=3

Unfortually I have been unable to get any of my pages to actually GZip up during 
transmittion.

I have enabled
output_buffering = On
output_handler = ob_gzhandler
in the php.ini file, with no luck

I have tried 
php_flag output_buffering on
php_value output_handler ob_gzhandler
in .htaccess files

I have even tried 
ob_start("ob_gzhandler");
at the top of my PHP Files..

Unfortually the output is NOT GZips, I have been testing the output with this script: 
http://leknor.com/code/gziped.php or by manually sending a HTTP Request:
GET /whatever.php HTTP/1.0
Host: localhost
Accept-Encoding: gzip

Nothing I try gets the page GZipped.

I am using php 4.0.6 binaries on windowsXP with apache 1.3.20

If anyone has been able to get this working, or has a solution to my problem please 
contact me,

Thanks
Andrew

Reply via email to