Turn from: http://blog.csdn.net/jsyzzcx/archive/2008/05/25/2480076.aspx
Reference: http://hi.baidu.com/mikeking20031/blog/item/6a58b35113edc81e377abe5b.html
This article discusses how to completely eliminate the Warning:cannot add header
Error message:
Sae_warning:cannot Modify header Information-headers already sent by (output started at/data1/www/htdocs/345/leank/1/b BS/LOGIN.PHP:15) in bbs/login.php on line 9
Sae_warning:cannot Modify header Information-headers already sent by
From: http://zhanglulu33.blog.163.com/blog/static/112799542010112810497281/
If you got this message: "Warning: cannot modify header information-headers already sent ...."If you see this warning when executing the PHP program: "Warning: cannot modify
Warning cannot send session cookie-headers already sent ... Problem Solving (PHP UTF-8 BOM-related issues)Accustomed to using Edit plus PHP programming, so sometimes there are some unknown errors, very troublesome;Recently, when developing a project,
This article mainly introduces PHP error Warning:cannot modify header information-headers already sent by workaround, the need for friends can refer to the followingThe error was encountered today when testing the following code:Copy CodeThe code is
This article describes the PHP hints cannot modify header Information-headers already sent by solution, is the PHP design process often encountered problems. In this paper, an example is used to analyze the solution. Share to everyone for your
Cannot modify header information-headers already sent by (output started...) is always reported ...)....
The following are some other reasons and solutions for the Cannot modify header information-headers already sent by error.
Method 1:There are
Copy Code code as follows:
Setcookie ("username", "bu", Time () +3600);
echo "AAAAA";
?>
Run with a warning
Warning: Cannot modify header information-headers already sent by Here's what people suggest Method One:There are some
Copy codeThe Code is as follows: Setcookie ("username", "bu", time () + 3600 );
Echo "aaaaa ";
?>
Run Warning: Cannot modify header information-headers already sent
Below are suggestions from others
Method 1:There are some restrictions on the use of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.