开启OB缓存无效???求解。
是这样的,php.ini的ob是关闭的,我直接运行下面的代码提示错误:
<?php<br />echo "ok";<br />header("content-type:text/html;charset=utf-8");<br />echo "ook";<br />?>ok<br />Warning: <br />Cannot modify header information - headers already sent by (output started at C:\php\apache\htdocs\static\test.php:1) in C:\php\apache\htdocs\static\test.php on line 4<br />ook
<?php<br />ob_start(); <br />echo "ok";<br />header("content-type:text/html;charset=utf-8");<br />echo "ook";<br />?>ok<br />Warning: Cannot modify header information - headers already sent by (output started at C:\php\apache\htdocs\static\test.php:1) in C:\php\apache\htdocs\static\test.php on line 4<br />ook
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号