网站源代码压缩的用处:
1、减小了文件的体积。
2、减小了网络传输量和带宽占用。
3、减小了服务器的处理的压力。
4、提高了页面的渲染显示的速度。
先把下面的代码放到module.php文件。

然后把下面的代码放到footer.php文件。
<?php $html=ob_get_contents();ob_get_clean();echo slys($html);?>
如果要实现不压缩pre中的代码,要在module.php里面的加入下面代码。

然后在echo_log.php、page.php文件中的$log_content用下面代码替换。
slbys($log_content)