{"id":1119,"date":"2019-06-04T08:25:00","date_gmt":"2019-06-04T08:25:00","guid":{"rendered":"http:\/\/pro369.com\/codes?p=1119"},"modified":"2019-06-04T08:25:00","modified_gmt":"2019-06-04T08:25:00","slug":"initphp%e6%a1%86%e6%9e%b6-33%ef%bc%88%e9%96%8b%e7%99%bc%e6%a1%86%e6%9e%b6%ef%bc%89%e6%ba%90%e7%a8%8b%e5%bc%8f%e7%a2%bc%e4%b8%8b%e8%bc%89","status":"publish","type":"post","link":"https:\/\/por.tw\/codes\/initphp%e6%a1%86%e6%9e%b6-33%ef%bc%88%e9%96%8b%e7%99%bc%e6%a1%86%e6%9e%b6%ef%bc%89%e6%ba%90%e7%a8%8b%e5%bc%8f%e7%a2%bc%e4%b8%8b%e8%bc%89\/","title":{"rendered":"InitPHP\u6846\u67b6 3.3\uff08\u958b\u767c\u6846\u67b6\uff09\u6e90\u7a0b\u5f0f\u78bc\u4e0b\u8f09"},"content":{"rendered":"<p><font size=\"3\"><strong><font color=\"#008000\">InitPHP\u662f\u4e00\u6b3e\u8f15\u91cf\u7d1a\u7684PHP\u958b\u6e90\u6846\u67b6\uff0c\u514d\u8cbb\u4e0b\u8f09\uff0c\u514d\u8cbb\u4f7f\u7528\uff01InitPHP\u63a1\u7528\u4e86\u5206\u5c64\u9ad4\u7cfb\u67b6\u69cb\uff0c\u5728MVC\u6a21\u5f0f\u57fa\u790e\u4e0a\u9032\u884c\u5ef6\u4f38\uff01\u8a73\u7d30\u7684API\u6587\u4ef6\u548c\u4f7f\u7528Zend studio\u958b\u767c\u4ee3\u78bc\u63d0\u793a\uff0c\u8b93\u60a8\u958b\u767c\u66f4\u52a0\u901f\u5ea6\uff01\u6211\u5011\u5c0d\u6bcf\u4e00\u500b\u6846\u67b6\u51fd\u6578\u9032\u884c\u4e86\u601d\u8003\uff0c\u7528\u7c21\u55ae\u7684\u4ee3\u78bc\u5beb\u5f37\u58ef\u7684\u7a0b\u5f0f\u3002<\/font><\/p>\n<p> <font color=\"#FF00FF\">InitPHP\u6846\u67b6 3.3 \u7248\u672c\u4fee\u6539\uff1a<\/font><br \/> 1.\u65b0\u589e\u63a7\u5236\u5668\u767d\u540d\u55ae\u53ef\u4ee5\u6307\u5b9aHTTP METHOD\u65b9\u6cd5<br \/> 2.\u65b0\u589erenturn200 return404 return500\u65b9\u6cd5<br \/> 3.\u4fee\u5fa9is_empty\u65b9\u6cd5<br \/> 4.\u4fee\u5fa9CURL \u53c3\u6578\u50b3\u53c3\u554f\u984c<\/p>\n<p> <font color=\"#FF00FF\">\u4ec0\u9ebc\u60c5\u6cc1\u4e0b\u60a8\u9700\u8981InitPHP\uff1f<\/font><br \/> 1.\u60a8\u662f\u4e00\u500bPHP\u958b\u767c\u8005\uff0c\u56f0\u60d1\u8457\u60f3\u5f9e\u9762\u5411\u904e\u7a0b\u8f49\u5411\u5230\u9762\u5411\u5c0d\u50cf\u958b\u767c<br \/> 2.\u60a8\u559c\u6b61\u8f15\u91cf\u7d1a\u7684\u6846\u67b6\uff0c\u60f3\u5feb\u901f\u5165\u9580<br \/> 3.\u60a8\u559c\u6b61\u6e05\u6670\u7684\u4ee3\u78bc\u7d50\u69cb\u548c\u826f\u597d\u7684\u4ee3\u78bc\u98a8\u683c\uff0c\u60f3\u95b1\u8b80\u4ee5\u53ca\u5f8c\u671f\u5ef6\u4f38\u6846\u67b6<br \/> 4.\u60a8\u7684\u9805\u76ee\u8655\u65bc\u4e2d\u7b49\u898f\u6a21\uff0c\u4e0d\u662f\u5f88\u5927\uff0c\u4e5f\u4e0d\u662f\u5f88\u5c0f<br \/> 5.\u60a8\u559c\u6b61\u6709\u8a73\u7d30\u7684\u958b\u767c\u6587\u4ef6<\/p>\n<p> <font color=\"#FF00FF\">\u6211\u5011\u6709\u4ec0\u9ebc\uff1f<\/font><br \/> 1.InitPHP\u6846\u67b6\u662f\u4e00\u6b3ePHP\u958b\u6e90\u6846\u67b6\uff0c\u514d\u8cbb\uff0c\u958b\u6e90\uff0c\u6709\u5f37\u5927\u7684\u6280\u8853\u5718\u968a\u652f\u63f4<br \/> 2.InitPHP\u6846\u67b6\u662f\u4e00\u6b3e\u5206\u5c64\u9ad4\u7cfb\u6846\u67b6\uff0c\u826f\u597d\u7684\u5206\u5c64\u7d50\u69cb\uff0c\u5c0dMVC\u5206\u5c64\u7d50\u69cb\u9032\u884c\u4e86\u6539\u5584\uff0c\u8b93\u9805\u76ee\u5206\u5c64\u66f4\u52a0\u7e3d\u7406<br \/> 3.InitPHP\u652f\u63f4\u5206\u7d44\uff0c\u591a\u5165\u53e3\uff0cURL\u91cd\u5beb\uff0c\u591a\u529f\u80fd\u8b8a\u6578\u540d\uff0c\u591a\u6a21\u677f\u4e3b\u984c\u529f\u80fd<br \/> 4.InitPHP\u652f\u63f4MYSQL,MSSQL\u7b49\u8cc7\u6599\u5eab\uff0c\u652f\u63f4\u5206\u6563\u5f0f\u8cc7\u6599\u5eab\uff0c\u591a\u8cc7\u6599\u5eab\u9023\u7dda\uff1b\u652f\u63f4\u6a94\u6848\u5feb\u53d6\uff0c\u8cc7\u6599\u5eab\u5feb\u53d6\uff0cMemcache\u5feb\u53d6\u7b49\uff0c\u4e26\u4e14\u53ef\u4ee5\u8f15\u9b06\u5207\u63db\u5feb\u53d6\u985e\u578b<br \/> 5.InitPHP\u63d0\u4f9b\u8c50\u5bcc\u7684Util\u5de5\u5177\u5eab\u548cLibrary\u5ef6\u4f38\u985e\u5eab\uff0c\u5ef6\u4f38\u65b9\u4fbf\uff0c\u4f7f\u7528\u66f4\u65b9\u4fbf<br \/> 6.InitPHP\u63d0\u4f9b\u5f37\u5927\u7684\u5b89\u5168\u6a5f\u5236\uff0c\u70ba\u60a8\u7684\u9805\u76ee\u4fdd\u99d5\u8b77\u822a<br \/> 7.\u6240\u6709\u7684InitPHP\u63d0\u4f9b\u7684API\u90fd\u53ef\u4ee5\u5728\u6587\u4ef6\u4e2d\u627e\u5230\uff0c\u4e26\u4e14\u4f7f\u7528\u65b9\u4fbf\uff0c\u63d0\u9ad8\u60a8\u7684\u958b\u767c\u901f\u5ea6<\/strong><\/font><\/p>\n<div style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/por.tw\/codes\/wp-content\/uploads\/attachments\/201309\/8921415425.jpg\"  width=\"449\" height=\"395\" \/><\/div>\n<div style=\"text-align: center\">&nbsp;<\/div>\n<div style=\"text-align: center\"><font size=\"3\"><strong>\u524d\u53f0\u9996\u9801\u4ecb\u9762<\/strong><\/font> <\/div>\n<div style=\"text-align: center\">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <\/div>\n<p><font size=\"3\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/> <font color=\"#800000\">\u6e90\u7a0b\u5f0f\u78bc\u985e\u5225\uff1a\u958b\u767c\u6846\u67b6 &nbsp;&nbsp; &nbsp;<br \/> \u6a94\u6848\u5927\u5c0f\uff1a454 K &nbsp;&nbsp; &nbsp;<br \/> \u904b\u884c\u74b0\u5883\uff1aPHP &nbsp;&nbsp; &nbsp;<br \/> \u6e90\u7a0b\u5f0f\u78bc\u8a9e\u7cfb\uff1a\u7c21\u9ad4\u4e2d\u6587<br \/> \u6e90\u7a0b\u5f0f\u78bc\u4f5c\u8005\uff1aInitPHP &nbsp;&nbsp; &nbsp;<br \/> \u6388\u6b0a\u5f62\u5f0f\uff1a\u514d\u8cbb\u7248<br \/> \u5b98\u65b9\u7db2\u7ad9\uff1ahttp:\/\/initphp.com\/ &nbsp;&nbsp;<\/font> &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br \/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/> <font color=\"#FF00FF\">InitPHP\u6846\u67b6 3.3\uff08\u958b\u767c\u6846\u67b6\uff09\u6e90\u7a0b\u5f0f\u78bc\u4e0b\u8f09\u7db2\u5740\uff1a<\/font><\/p>\n<p> <\/strong><\/font><!--mfileBegin-->1617<!--mfileEnd--><\/p>\n<p><font size=\"3\"><strong> \u6a94\u6848\u5927\u5c0f\uff1a418.3KB<br \/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/strong><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>InitPHP\u662f\u4e00\u6b3e\u8f15\u91cf\u7d1a\u7684PHP\u958b\u6e90\u6846\u67b6\uff0c\u514d\u8cbb\u4e0b\u8f09\uff0c\u514d\u8cbb\u4f7f\u7528\uff01InitPHP\u63a1\u7528\u4e86\u5206\u5c64\u9ad4\u7cfb\u67b6\u69cb\uff0c\u5728MVC\u6a21\u5f0f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[70],"class_list":["post-1119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-22","tag-70"],"_links":{"self":[{"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/posts\/1119"}],"collection":[{"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/comments?post=1119"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/posts\/1119\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/media\/1598"}],"wp:attachment":[{"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/media?parent=1119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/categories?post=1119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/tags?post=1119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}