如果前面程序用 ob_start('ob_gzhandler'); 开启了gzip压缩,执行过程中又不想用了,可以用: ob_end_clean();ob_start(); 来撤消。。 转载于:https://blog.51cto.com/kongxm/545829