As described in Mr. Pengwuchen's PHP BIBLE, the header can send a status header, such as
Header ("status:404 not Found");
?>
Can let the user browser appear the file cannot find the 404 error, but I tried this is not possible.
Later I went to w3.org
first, the role:
~~~~~~~~~
PHP only in the HTTP protocol to the HTML document header to the browser, tell the browser how to deal with this page, as for the content of the transfer will need to familiarize yourself with the HTTP protocol, not
How does php compress all files in a folder into a zip file? How does php compress all files in a folder into a zip file? For example, my localhosthas a testfolder with many files and folders in it. how can I pack all test.zip files into test.zip ?,
The 404 page tells the search engine that the page does not exist, and also prompts users to select other operations. next I will introduce php custom 404 to my friends who do not have apache operation permissions.
The 404 page tells the search
301 jump The code is as follows:Copy code Header ('http/1.1 301 Moved Permanently ');Header ('Location: http://www.abc.com/aaa /');Exit (); Do not miss the header ('http/1.1 301 Moved Permanently '); otherwise, no 301 is returned.404 error page
The phpheader function downloads the file implementation code. In php, the header function is used heavily. the header can not only send the original HTTP header information to the client, but also directly implement file download operations, next,
Instructions for using the header () function:
I. role:~~~~~~~~~PHP only sends the HTML document header to the browser using the HTTP protocol to tell the browser how to handle the page. As for the transmitted content, you need to familiarize
I. role:
~~~~~~~~~
PHP only sends the HTML document header to the browser using the HTTP protocol to tell the browser how to handle the page. As for the transmitted content, you need to familiarize yourself with the HTTP protocol, which is
How does PHP compress all the files in a folder into a zip file?
How does PHP compress all the files in a folder into a zip file?
If there is a test folder under my localhost, there are many files and folders inside, how to package everything in
function Header function:
Page Jump
HTTP header informationHeader information has many functions, the most important of which are the following:1, jumpWhen the browser accepts the location:xxxx in the header, it automatically jumps to the URL
There are usually three kinds:
The code is as follows
Copy Code
Location:xxxx:yyyy/zzzzContent-type:xxxx/yyyystatus:nnn xxxxxx
Common examples
1. Implementation redirection (Status Code 302)
The
The types of information that are typically transmitted when handling AJAX responses are: data, success information, error information, failure information, and processing status, the type of information passed is inconsistent, plus, in addition to
To create a new file EmptyAction.class.php in the action, the code in the file is as follows:
The code is as follows
Copy Code
Class Emptyaction extends action{function _empty () {Header ("http/1.0 404 Not Found");//make
Error | One of the common errors in error handling on the Web is an invalid link. Once an invalid link appears from another site, you will reschedule your
's site. People will save their favorite sites in a book, and if they visit again after
There are usually three kinds:
The code is as follows
Copy Code
Location:xxxx:yyyy/zzzzContent-type:xxxx/yyyystatus:nnn xxxxxx
Common examples1. Implement Redirection (Status code 302)
The code download address has been updated. Because the code is not updated for a long time, has been very outdated, we recommend the use of Recyclerview implementation.
Reference items:
Https://github.com/bingoogolapple/BGARefreshLayout-Android
Exception one: Java.lang.IllegalStateException:Cannot forward a response is already committedAnomaly two: Illegalstateexception:response already commitedException three: Illegalstateexception:getoutputstream () has already been called for this
We know that you can create an ASM disk in the following ways, and then create a logical ASM disk group.
Create the ASM disk as root user.#/etc/init.d/oracleasm Createdisk VOL1/DEV/SDC1Marking disk "/DEV/SDC1" as an ASM disk:
Khan ~ ~ done a network of PHP topics, unknowingly do now ... Post the answers.If you have any questions, please feel free to add and correct
1, with PHP printed out the day before the format is 2006-5-10 22:21:21 (2 points) $a = date ("y-m-d h:i:s",
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.