<?phpfunction callback($buffer) {
// replace all the apples with oranges
return (str_replace("apples", "oranges", $buffer));
}ob_start("callback");?><html>
<body>
<p>It's like comparing apples to oranges.
</body>
</html><?phpob_end_flush();?>
// replace all the apples with oranges
return (str_replace("apples", "oranges", $buffer));
}ob_start("callback");?><html>
<body>
<p>It's like comparing apples to oranges.
</body>
</html><?phpob_end_flush();?>
我用的是
ob_start('ob_gzhandler');
就不行
用
ob_start();
就可以