The session may prompt that the header information or something has been output.
Source: Internet
Author: User
The session or header prompts that a header information or something has been output. Let me summarize the problem. 1: At the beginning, an error is prompted, and then I switch to HTML for the jump, because I am using the WAMP integrated environment, I am afraid it is an environment problem, so there is no major debugging. 2: When session () is used, the prompt is displayed. I am sure there is no output before, but the prompt is still displayed. My session or header prompts that the header information or something has been output.
Let me summarize the problem.
1: At the beginning, an error is prompted, and then I switch to HTML for the jump, because I am using the WAMP integrated environment, I am afraid it is an environment problem, so there is no major debugging.
2: When session () is used, the prompt is displayed. I am sure there is no output before, but the prompt is still displayed. I found several methods for testing.
Include ***)
1) save it as UTF8 in bom mode,
2) var_dump (headers_sent (); if the inclusion is killed, 0 is displayed. if the inclusion file is not deleted, 1 is displayed.
Limited capabilities, Baidu has done its best, and hope to help me.
------ Solution --------------------
Output started at D: \ wamp \ www \ Blog \ class \ DB. class. php: 1
Output in Line D: \ wamp \ www \ Blog \ class \ DB. class. php 1st
Why did you turn a blind eye to this simple and clear prompt?
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service