PDA

View Full Version : Compressing forum's archive


Derek_Trotter
05-10-2008, 10:48 AM
My forum is gziped but forum's archive is not?!
How can I compress forum's archive with gzip compression?
Thanks!

P.S. I working with VB version 3.7

Derek_Trotter
05-12-2008, 08:04 AM
OK. I find solution!
My forum's archive is now gzip compressed.
I put this line of code:
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();

in file archive/index.php

I place it here:
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('SESSION_BYPASS', 1);
define('THIS_SCRIPT', 'archive');
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();

// ################### PRE-CACHE TEMPLATES AND DATA ######################

To see is it you archive gziped go to website for gzip testing:
http://www.gidnetwork.com/tools/gzip-test.php

Enjoy:)