PHP源码http状态码留存。
static const http_response_status_code_pair http_status_map[] = {
{ 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, "Found" },
{ 303, "See Other" },
{ 304, "Not Modified" },
{ 305, "Use Proxy" },
{ 307, "Temporary Redirect" },
{ 308, "Permanent Redirect" },
{ 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 Timeout" },
{ 409, "Conflict" },
{ 410, "Gone" },
{ 411, "Length Required" },
{ 412, "Precondition Failed" },
{ 413, "Request Entity Too Large" },
{ 414, "Request-URI Too Long" },
{ 415, "Unsupported Media Type" },
{ 416, "Requested Range Not Satisfiable" },
{ 417, "Expectation Failed" },
{ 426, "Upgrade Required" },
{ 428, "Precondition Required" },
{ 429, "Too Many Requests" },
{ 431, "Request Header Fields Too Large" },
{ 451, "Unavailable For Legal Reasons"},
{ 500, "Internal Server Error" },
{ 501, "Not Implemented" },
{ 502, "Bad Gateway" },
{ 503, "Service Unavailable" },
{ 504, "Gateway Timeout" },
{ 505, "HTTP Version Not Supported" },
{ 506, "Variant Also Negotiates" },
{ 511, "Network Authentication Required" },
/* to allow search with while() loop */
{ 0, NULL }
};
一个写了七年PHP代码的码农,写出来的代码就这个水平,说实在,自个儿都看不下去了。
偶尔撸别人的源码,优雅,思路清晰,边界判断逻辑严密,一万个羡慕嫉妒恨。可是这种好代码该如何才能写的出来呢。
你瞧别人写个代码基本不用怎么测试,交付就等于验收,没有什么一次回归二次回归。
曾经比较火的一款PHP博客程序Emlog也宣布要关闭论坛了,互联网变化太快,曾经写博客的都放弃了或者转自媒体平台了,那些独立博客程序也越来越少人使用。
我曾经使用过pjblog、z-blog、bo-blog、sablog、WordPress等开源博客程序,也开发过几款WordPress插件,后来自己开发博客程序自己用。在这移动互联网时代了,写博客确实过时了,写了没人看,搜索引擎也给不了多少个流量,写来写去变成了一个个人日记本。还不如搞个公众号,或者自媒体上发点动态,有人评论互动才有意义,你觉得呢?
如果觉得《php简易企业网站源码 开源企业建站系统 php》对你有帮助,请点赞、收藏,并留下你的观点哦!