If you are just beginning to learn PHP, there may be many functions to study, today we will learn how to use the PHP Header (), more instructions, please refer to the PHP Chinese manual, the following is about the Header function detailed use
If you have just started to learn PHP, there may be many functions need to study, today we will learn how to use the PHP Header (), more instructions, please refer to the PHP Chinese manual, the following is a detailed use of the header function
If you have just started to learn PHP, there may be many functions need to study, today we will learn how to use the PHP Header (), more instructions, please refer to the PHP Chinese manual, the following is a detailed use of the header function
The Header () function sends an original HTTP header [HTTP header] to the client.
The header is the string sent by the server before the server passes HTML data to the browser with HTTP co-meaning.
Separate HTML files with a blank line. For more
Header ("http/1.1 404 Not Found");
Copy CodeFor the ErrorDocument 404/404.php function in Apache configuration, the
Error_page 404/404.php;
Copy CodeChange into
Error_page 404
If you have just started learning PHP, there may be many functions that need to be studied. Today we will learn how to use PHP Header (). For more instructions, please refer to the PHP Chinese manual. The following describes how to use the header
PHP page encoding declaration method (header or meta ). Php header to define a php page for utf encoding or GBK encoding php page for utf encoding header (Content-type: texthtml; charsetutf-8 ); the php page is gbk encoded header (Content-type: text
PHP headers used in the HTTP protocol and common methods Summary, header summary
This paper summarizes the HTTP protocol used by headers in PHP and the common methods. Share to everyone for your reference. Here's how:
Copy CodeThe code is as
Information about the header of the PHP file (header) of the detailed introduction, is the programmer's home has seen the most detailed article, the need for friends, do not miss such a good article.
PHP File header information detailed.1.
PHP header to define a PHP page for UTF encoding or GBK encoding
PHP page for UTF encoding
Header ("content-type:text/html; Charset=utf-8 ");
PHP page for GBK encoding
Header ("content-type:text/html; charset=gb2312 ");
PHP page for
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.