| Shane Lahey 2004-05-27, 2:31 am |
| On Tue, 25 May 2004 19:13:29 GMT, "Rob" <reply_@news_group.please>
wrote:
>Hello all,
>
>I heard the ob_gzhandler will speed your site. But I can't get it right.
>When I use this I get a blank page at first load, second load and other
>pages seems to be ok after the first load. I looked on php.net and found
>some code(even somebody who seems to have the same problem) but no such
>luck. There was a reference to a class but that was written a few years ago
>
>Can somebody help me out to get this to work (or explain me why not to use
>it)
>
>thanks in advance
>Rob
>
in your PHP index.php add the following in the top of the file
<?php
require_once('gzdoc.php');
?>
this will turn output buffering on for your whole page using
ob_start() & ob_implicit_flush(0);
then as the LAST line of your index.php ... add the following:
<?php
GzDocOut(9); // Send data .. compressing with gZip! *yay* :D
?>
hope this helps
|