Read about php error cannot modify header information, The latest news, videos, and discussion topics about php error cannot modify header information from alibabacloud.com
How to solve the problem that PHP cannot modify the header information. In actual use, for example, the following PHP error message cannot be modified: Warning: Cannotmodifyheaderinformation-headersalreadysentby we have just started to write PHP
In actual use
For example, the following PHP cannot modify the header information Error warning:
Warning:cannot Modify header Information-headers already sent by
We've probably had this problem when we started writing PHP programs. From the literal
When using PHP, there are times when you may encounter some errors, how are these errors generated? And how do we solve these problems? This requires that we have a certain grasp of the language of PHP. Let me talk about how to solve the problem
In actual use
For example, the following PHP error warning cannot modify the header information:
Warning: Cannot modify header information-headers already sent
We may have encountered this problem when we were writing PHP programs. Literally, it
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
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
Warning: cannot modify header information-headers already sent by error causeI added the header of the PHP program,Header ("cache-control: No-cache, must-revalidate ");The above error is displayed on the page, and N documents are not returned. Today,
Summary, the ultimate approach: Modify the php.ini file, the output_buffering default is off, change to 4096.
!--? phpob_start (); Setcookie ("username", "Song Yan Bin", Time () +3600); Echo "The username is:". $HTTP _cookie_vars["username"]. " \
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.