No output cause analysis is available before header and session_start in PHP.

Source: Internet
Author: User

In http transmission text, it is required that the header and content must be in the following order: the header must be in the front content, and the header must be in the format of "keyword: value \ n.

1. If there is output content before the header is output, it will cause an incorrect understanding of the header (although it can be fault-tolerant now). For example, if the "keyword: the format of value \ n is okay. It is a direct error. But after the format of "keyword: value \ n" is met, does the client correctly understand the installation error?

2. whether to use the header ("Set-Cookie: sid = xxxxxx") is implicitly triggered when the session is enabled, that is, it is actually an implicit header call.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.