note 91446 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Sun, 23 Jan 2011 17:30:12 +0000 |
| Subject: | note 91446 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176211@lists.php.net to get a copy of this message | ||
Note Submitter: fgif2 at yahoo dot fr
----
For who likes to know all the status codes, and the corresponding phrases, that PHP can generate
when using the $http_response_code param in the header() function, I have made a little script which
tries sequentially all the codes from 100 to 599 and keeps those generating valid results.
This script is enough long to process (using a socket loop connection) then it is executed actually
once a day, but generates a cache file, to be served fast.
Note that here are the codes generated by PHP, not those which can be answered by Apache or any
other server, nor any other 'exotic' status codes specific to some application: http://gif.phpnet.org/frederic/programs/http_status_codes/