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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:39:33
Original
1031 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
About header files
From 1970-01-01 08:00:00
0
0
0
objective-c - header search path
From 1970-01-01 08:00:00
0
0
0
header problem
From 1970-01-01 08:00:00
0
0
0
How to control the length of page-header?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template