PHPheader () function description (301, 404, and other error settings ). If you have just started learning PHP, there may be many functions that need to be studied. today we will learn how to use PHPHeader (). for more instructions, please refer to
Use the PHPheader () function to implement the 404 error prompt function on the page. we have compiled the detailed usage of the PHPheader () function and shared it with you. we need to provide more support for our 404 page.
If you have just started
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
301 jump is to tell the visitor page has been forever to the new page, in PHP using 301 jump We use the header () function to send 301 status code to tell the browser, and then implement the page jump.
PHP Pure Code Jump
The code is as
During the development process, forms often encounter errors and all information filled in when the page is returned is lost. to support page bounce, you can use either of the following methods. 1. use the header to set the Cache control header
This program uses the phpGD library to simply display IP addresses in images. before using php, make sure that you have enabled the gd Library and the font path used for access.
This program uses the php GD library to simply display IP addresses in
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
1. Get the kernel version
When the device driver needs to support different kernel versions at the same time, in the compilation phase, the kernel module needs to know the version of the currently used kernel source code to use the corresponding
1. Add a comment block at the beginning of the style sheet to describe the creation date, creator, tag, and other remarks of the style sheet.
Example source code:/*---------------------------------Site: site nameAuthor:
First take a look at the PHP instance code: @ header (& quot; http11404notfound & quot;); @ header (& quot; status: 404 notfound & quot;); echo & amp; 39; echo404 & amp; 39; exit (); check whether 404 is set successfully
Let's take a look at the
The following describes how to use the header function. The following describes how to use the header function.
No matter how many headers there are on the page, it executes the last one, but it is conditional. for example:Header ('Location: https:/
This article is mainly to share with you PHP operation Redis Life, hope to help everyone.
To confirm that the server has the Redis service turned onThe Redis port number is 6379 by default
A small example code
Header ("Content-type:text/html;charset=
With the open-source PHP-ExcelReader class, we can easily import Excel file data. The sample code is as follows:PHP-ExcelReader download address: http://sourceforge.net/projects/phpexcelreader/Example: import an Excel file The code is as
Usually, when judging a non-existing resource (such as category or product does not exist) through php, you need to return a 404 status through the header and display the corresponding 404 page. The method on the previous server is as follows: The
When I use the iconv function to convert gb2312 to UTF-8, why do some Chinese characters have problems, such "?? Quot; the prompt is as follows:Notice: iconv () [function. iconv]: Detected an illegal character in input stringSolution: The code is
In the app run, the following bug has happened, please ask how to add the Mui.ajax back to the Web page
uncaught typeerror:property ' data ' of object function (B,c) {if (c=c| | A,!B) return J (); if ("Object" ==typeof B) return i.isarraylike (b)?
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.