View file gzip.bottom.php
<?php $Contents=ob_get_contents(); $gzib_file=strlen($Contents); if($support_deflate) { $gzib_file_out=strlen(gzdeflate($Contents,9)); } else { if($support_gzip) { $gzib_file_out=strlen(gzencode($Contents,9)); } else { if($support_x_gzip) { $gzib_file_out=strlen(gzcompress($Contents,9)); } else { $gzib_file_out=strlen($Contents); } } } $gzib_pro=round(100-(100/($gzib_file/$gzib_file_out)),1); if($gzib_pro > 0 && $gzib_pro < 100) { echo 'Сжатие: '.$gzib_pro.'%<br/>'; } ?>