If you're having trouble with ob_gzhandler...
1) Make sure you've set output_handler = ob_gzhandler in your php.ini file
2) Check it using the lovely form from http://leknor.com/code/gziped.php
3) If your site isn't available externally, check it by running a command window and telnetting to it with:-
telnet localhost 80
and then type:-
GET /index.php HTTP/1.1
Host: somehostname
Accept-Encoding: gzip
and see if you get a load of strange characters come back (as opposed to recognisable HTML)
3) If it's not compressing, check that your PHP is compiled with --with-zlib. If it's not, it won't chuck out any errors, it just won't compress anything.
You can test this by making a test.php page:-
<?
phpinfo();
?>
Which, when you browse to it, should show a row called 'Configure Command', which should have something like:-
./configure' '--with-mysql' '--with-apxs' '--with-zlib'
in it.
If the --with-zlib is missing, that's your problem.
The bad news - you've now got to recompile it. Go to www.php.net, download the source and compile it using something like:-
./configure --with-mysql --with-apxs --with-zlib
make
make install
restart your webserver and admire compressed result
Good luck 🙂
Tom