Want something that can both speed up your page load time and cut down on bandwidth, thus preventing another potential meltdown? Then I'm here to help. Well, not me. But try this...and once you've rebuilt you can test it here.
In geek talk:
Anyone with a recent version of PHP (4.1+) running on their server can easily take advantage of this. Benefits are greatly reduced bandwidth consumption and a much speedier site, especially for readers using modems.It does have to be the very first line; but it works - I've just done it on mine and it validated. Posted by Simon at December 17, 2004 08:16 AMSimply place the following snippet at the very first line of PHP-aware web pages, before :
<?php ob_start("ob_gzhandler"); ?>
And that’s it.
Thanks Simon. The mu.nu forums have been gzipped for a while, but I didn't know it was that easy to gzip an arbitrary page. (Until I saw it yesterday on LGF...) And the validator is very handy.
Posted by Pixy Misa at December 17, 2004 12:21 PMWell finally! I've been scrounging to try to figure out how to do this for some time.
Great find, Simon!
Posted by Light & Dark at December 17, 2004 06:08 PM