The header is the string sent by the server before the server passes HTML data to the browser using HTTP co-definition. a blank line is required between the header and the HTML file. For details about HTTP, refer to RFC2068 official... the header is the string sent by the server before the server passes HTML data to the browser using HTTP co-definition. a blank line is required between the header and the HTML file. For a detailed description of HTTP, refer to the RFC 2068 official file (http://www.w3.org/Protocols/rfc2068/rfc2068 ).
Before Sending HTML data back to PHP, you must upload all the headers.
Note:The traditional header must contain one of the following three headers and can only appear once.
Content-Type: xxxx/yyyy
Location: xxxx: yyyy/zzzz
Status: nnn xxxxxx
The new Multipart MIME type can appear more than twice.
Example
Example 1: In this example, the browser is redirected to the official PHP website.
Tutorial address:
Reprinted! But please include the article address ^