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
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
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
Warning cannot send session cookie-headers already sent... Problem Solving (problem caused by UTF-8 BOM of PHP)
I am used to using edit plus for PHP programming, so sometimes some unknown errors may occur, which is very troublesome;Recently, the
Believe that most people write PHP code, have encountered similar "Warning:cannot send session cookie–headers already sent ..." or "Cannot add/modify header infor Mation–headers already sent ... " Such warning hints. Let's take a look at the causes
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
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
Warning cannot send session cookie-headers already sent ... Problem Resolution (PHP UTF-8 BOM citation
Accustomed to using Edit plus PHP programming, so sometimes there are some unknown errors, very troublesome;
Recently, when developing a project,
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
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.