Home  >  Article  >  Backend Development  >  php中flush和header同时使用报错有关问题

php中flush和header同时使用报错有关问题

WBOY
WBOYOriginal
2016-06-13 12:39:33971browse

php中flush和header同时使用报错问题
我在header前面有输出,怎样让下面的代码header不报错?求解决办法。。。。
//这是我加入的代码
echo 'sd';
ob_flush(); 
flush(); 
//下面是系统的代码,无法改变。
ob_start();
header('Status: 2342');
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn