KillaStaff
New Member
it's simply, in first, use Gzip compression of vbulletin with value by default -> 1 (don't use higher)
and paste the code in the top of your header template :
<META **********="Page-Enter" content="blendTrans(Duration=0)">
<META **********="Page-Exit" content="blendTrans(Duration=0)">
<?php
$data = implode("", file("bigfile.php"));
$gzdata = gzencode($data, 9);
$fp = fopen("bigfile.php.gz", "w");
fwrite($fp, $gzdata);
fclose($fp);
?>
<?php
foreach (glob("*.php") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
?>
<?php
ob_start( 'ob_gzhandler' );
?>
<?php
$compressed = gzdeflate('Compress me', 9);
$uncompressed = gzinflate($compressed);
echo $uncompressed;
?>
enjoy
and paste the code in the top of your header template :
<META **********="Page-Enter" content="blendTrans(Duration=0)">
<META **********="Page-Exit" content="blendTrans(Duration=0)">
<?php
$data = implode("", file("bigfile.php"));
$gzdata = gzencode($data, 9);
$fp = fopen("bigfile.php.gz", "w");
fwrite($fp, $gzdata);
fclose($fp);
?>
<?php
foreach (glob("*.php") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
?>
<?php
ob_start( 'ob_gzhandler' );
?>
<?php
$compressed = gzdeflate('Compress me', 9);
$uncompressed = gzinflate($compressed);
echo $uncompressed;
?>
enjoy
