As described in Mr. Pengwuchen's PHP BIBLE, the header can send a status header, such as 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 to check the relevant information on the HTTP, finally tried out how to header out status code (status), share with you. It should be like this: the Header ("http/1.1 403 Forbidden");?> the first version of the HTTP protocol (http-version) the second part of the status code is the third part of the reason phrase ( Reason-phrase) Three parts in the middle with a space separate, and the middle can not have a carriage return, the first part and the second part is necessary, the third part is to show people, can write not write or even write. Also, the output of this sentence must be in the first line of the HTML file. The following I give the meaning of the code (from the w3.org, enough authority): * 1xx:informational-request received, continuing process * 2xx:success-the AC tion was successfully received, understood, and accepted * 3xx:redirection-further action must being taken in order to Complete the request * 4xx:client error-the request contains bad syntax or cannot be fulfilled * 5xx:server E Rror-the Server failed to fulfill an apparently valid request | "100"; Continue | "101"; Switching Protocols | "200"; OK | "201"; Created | "202"; Accepted | "203"; Non-authoritative Information | "204"; No Content | "205"; Reset Content | "206"; Partial Content | "300"; Multiple Choices | "301"; Moved permanently | "302"; Moved temporarily | "303"; See other | "304"; Not Modified | "305"; Use Proxy | "400"; Bad Request | "401"; Unauthorized | "402"; Payment Required | "403"; Forbidden | "404"; Not Found | "405"; Method not Allowed | "406"; Not acceptable | "407"; Proxy Authentication Required | "408"; Request Time-out | "409"; Conflict | "410"; Gone | "411"; Length Required | "412"; Precondition Failed | "413"; Request Entity Too Large | "414"; Request-uri Too Large | "415"; Unsupported Media Type | "500"; Internal Server Error | "501"; Not Implemented | "502"; Bad Gateway | "503"; Service Unavailable | "504"; Gateway Time-out | "505"; HTTP Version not supported
http://www.bkjia.com/PHPjc/532199.html www.bkjia.com true http://www.bkjia.com/PHPjc/532199.html techarticle as described in Mr. Pengwuchen's PHP BIBLE, the header can send out the status header, such as the user's browser can not find a file 404 error, but I tried this is not possible ...