{"id":860,"date":"2023-06-05T13:41:44","date_gmt":"2023-06-05T05:41:44","guid":{"rendered":"http:\/\/pro369.com\/codes?p=860"},"modified":"2019-06-23T15:15:00","modified_gmt":"2019-06-23T15:15:00","slug":"thinkphp-313%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\/thinkphp-313%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":"ThinkPHP 3.1.3\uff08\u958b\u767c\u6846\u67b6\uff09\u6e90\u7a0b\u5f0f\u78bc\u4e0b\u8f09"},"content":{"rendered":"<p><font size=\"3\" color=\"#008000\"><strong>ThinkPHP\u662f\u4e00\u500b\u6548\u80fd\u5353\u8d8a\u4e26\u4e14\u529f\u80fd\u8c50\u5bcc\u7684\uff0c\u958b\u6e90\u7684\uff0c\u8f15\u91cf\u7d1aPHP\u958b\u767c\u6846\u67b6\uff0c\u672c\u8eab\u5177\u6709\u5f88\u591a\u7684\u539f\u5275\u7279\u6027\uff0c\u4e26\u4e14\u5021\u5c0e\u5927\u9053\u81f3\u7c21\uff0c\u958b\u767c\u7531\u6211\u7684\u958b\u767c\u7406\u5ff5<\/strong><\/font><font size=\"3\"><strong><font size=\"3\" color=\"#008000\"><strong>\uff0c\u7528\u6700\u5c11\u7684\u4ee3\u78bc\u5b8c\u6210\u66f4\u591a\u7684\u529f\u80fd\uff0c\u5b97\u65e8\u5c31\u662f\u8b93WEB\u61c9\u7528\u958b\u767c\u66f4\u7c21\u55ae\u3001\u66f4\u5feb\u901f\u3002<\/strong><\/font><font color=\"#008000\"><br \/> <\/font><br \/> <font color=\"#FF00FF\">ThinkPHP 3.1.3 \u66f4\u65b0\u65e5\u8a8c:<\/font><br \/> \u8a72\u7248\u672c\u91dd\u5c0d3.1.2\u9032\u884c\u4e86\u4e00\u4e9b\u6539\u9032\u548c\u5b8c\u5584\uff0c\u4e3b\u8981\u5167\u542b\uff1a\u6539\u9032\u7570\u5e38\u8655\u7406\uff0c\u652f\u63f4\u81f4\u547d\u932f\u8aa4\u6355\u7372\uff1b<br \/> \u91dd\u5c0dPDO\u9a45\u52d5\u548cSqlsrv\u9a45\u52d5\u7684\u5b8c\u5584\uff0c\u652f\u63f4\u53c3\u6578\u7d81\u5b9a\uff1b<br \/> \u589e\u52a0\u8b8a\u91cf\u5b89\u5168\u53d6\u5f97\u548c\u904e\u6ffe\u7684\u5feb\u6377\u65b9\u6cd5I\uff1b<br \/> \u5206\u7d44\u652f\u63f4\u90e8\u7f72\u5230\u5b8c\u6574\u529f\u80fd\u8b8a\u6578\u540d\u6216IP\uff1b<br \/> A\u548cD\u65b9\u6cd5\u652f\u63f4\u8de8\u5206\u7d44\u547c\u53eb\uff1b<br \/> \u6539\u9032\u6a21\u7248\u5f15\u64ce\u7684\u5b9a\u754c\u7b26\u5c0d\u7279\u6b8a\u5b57\u5143\u7684\u652f\u63f4\uff1b<br \/> \u4fee\u6b63JS\u4ee3\u78bc\u53ef\u80fd\u5c0d\u6a21\u7248\u6a19\u7c64\u7684\u6df7\u6dc6\uff1b<br \/> \u6a21\u578b\u7684where\u65b9\u6cd5\u652f\u63f4\u591a\u6b21\u547c\u53eb\uff1b<br \/> \u9810\u8a2d\u95dc\u9589\u9801\u9762\u58d3\u7e2e\u8f38\u51fa\uff1b<br \/> \u7570\u5e38\u65e5\u8a8c\u7684\u7d00\u9304\uff1b<br \/> Action\u985e\u7684assign\u65b9\u6cd5\u652f\u63f4\u9023\u8cab\u64cd\u4f5c\uff1b<br \/> \u8cc7\u6599\u5eab\u932f\u8aa4\u8a0a\u606f\u5167\u542b\u932f\u8aa4\u4ee3\u78bc\uff1b<br \/> \u4fee\u6b63\u4e0a\u4e00\u7248\u672c\u7684\u4e00\u4e9bBUG\uff1b<br \/> <font color=\"#FF0000\"><br \/> ThinkPHP\u503c\u5f97\u63a8\u85a6\u7684\u7279\u6027\u5167\u542b\uff1a<\/font><br \/> &nbsp;\u985e\u5eab\u532f\u5165\uff1aThinkPHP\u662f\u9996\u5148\u63a1\u7528\u57fa\u65bc\u985e\u5eab\u5305\u548c\u547d\u540d\u7a7a\u9593\u7684\u6a21\u5f0f\u532f\u5165\u985e\u5eab\uff0c\u8b93\u985e\u5eab\u532f\u5165\u770b\u8d77\u4f86\u66f4\u52a0\u7c21\u55ae\u6e05\u6670\uff0c\u800c\u4e14\u9084\u652f\u63f4\u885d\u7a81\u6aa2\u9a57\u548c\u5225\u540d\u532f\u5165<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\u3002\u70ba\u4e86\u65b9\u4fbf\u9805\u76ee\u7684\u8de8\u5e73\u53f0\u79fb\u690d\uff0c\u7cfb\u7d71\u9084\u53ef\u4ee5\u56b4\u683c\u6aa2\u67e5\u52a0\u8f09\u6a94\u6848\u7684\u5927\u5c0f\u5beb\u3002<\/strong><\/font><\/p>\n<p> URL\u6a21\u5f0f\uff1a\u7cfb\u7d71\u652f\u63f4\u666e\u901a\u6a21\u5f0f\u3001PATHINFO\u6a21\u5f0f\u3001REWRITE\u6a21\u5f0f\u548c\u76f8\u5bb9\u6a21\u5f0f\u7684URL\u6a21\u5f0f\uff0c\u652f\u63f4\u4e0d\u540c\u7684\u4f3a\u670d\u5668\u548c\u904b\u884c\u6a21\u5f0f\u7684\u90e8\u7f72\uff0c\u914d\u5408URL\u8def\u7531\u529f\u80fd<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\uff0c\u8b93\u4f60\u96a8\u5fc3\u6240\u6b32\u7684\u69cb\u5efa\u9700\u8981\u7684URL\u4f4d\u5740\u548c\u9032\u884cSEO\u6539\u5584\u5de5\u4f5c\u3002<br \/> \u7de8\u8b6f\u6a5f\u5236\uff1a\u7368\u5275\u7684\u6838\u5fc3\u7de8\u8b6f\u548c\u9805\u76ee\u7684\u52d5\u614b\u7de8\u8b6f\u6a5f\u5236\uff0c\u6709\u6548\u6e1b\u5c11OOP\u958b\u767c\u4e2d\u6a94\u6848\u52a0\u8f09\u7684\u6548\u80fd\u958b\u92b7\u3002ALLINONE\u6a21\u5f0f\u66f4\u662f\u8b93\u4f60\u9ad4\u9a57\u98db\u4e00\u822c\u7684\u611f\u89ba\u3002<br \/> &nbsp;ORM\uff1a\u7c21\u6f54\u8f15\u5de7\u7684ORM\u5be6\u73fe\uff0c\u914d\u5408\u7c21\u55ae\u7684CURD\u4ee5\u53caAR\u6a21\u5f0f\uff0c\u8b93\u958b\u767c\u6548\u7387\u7121\u8655\u4e0d\u5728\u3002<br \/> &nbsp;\u67e5\u8a62\u8a9e\u7cfb\uff1a\u5167\u5efa\u8c50\u5bcc\u7684\u67e5\u8a62\u6a5f\u5236\uff0c\u5167\u542b\u7d44\u5408\u67e5\u8a62\u3001\u5fa9\u5408\u67e5\u8a62\u3001\u5340\u9593\u67e5\u8a62\u3001\u7d71\u8a08\u67e5\u8a62\u3001\u5b9a\u4f4d\u67e5\u8a62\u3001\u52d5\u614b\u67e5\u8a62\u548c\u539f\u751f\u67e5\u8a62\uff0c\u8b93\u4f60\u7684\u8cc7\u6599\u67e5\u8a62\u7c21\u6f54<\/strong><\/font><\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong><font size=\"3\"><strong>\u9ad8\u6548\u3002<\/strong><\/font>&nbsp;<\/strong><\/font><\/p>\n<p> &nbsp;\u52d5\u614b\u6a21\u578b\uff1a\u7121\u9700\u5efa\u7acb\u4efb\u4f55\u5c0d\u61c9\u7684\u6a21\u578b\u985e\uff0c\u8f15\u9b06\u5b8c\u6210CURD\u64cd\u4f5c\uff0c\u652f\u63f4\u591a\u7a2e\u6a21\u578b\u4e4b\u9593\u7684\u52d5\u614b\u5207\u63db\uff0c\u8b93\u4f60\u9818\u7565\u8cc7\u6599\u64cd\u4f5c\u7684\u7121\u6bd4\u66a2\u5feb\u548c\u6700\u4f73\u9ad4\u9a57\u3002<br \/> &nbsp;\u9032\u968e\u6a21\u578b\uff1a\u53ef\u4ee5\u8f15\u9b06\u652f\u63f4\u5e8f\u5217\u5316\u6b04\u4f4d\u3001\u6587\u5b57\u6b04\u4f4d\u3001\u552f\u8b80\u6b04\u4f4d\u3001\u5ef6\u9072\u5beb\u5165\u3001\u6a02\u89c0\u9396\u3001\u8cc7\u6599\u5206\u8868\u7b49\u9032\u968e\u7279\u6027\u3002<br \/> \u6aa2\u8996\u6a21\u578b\uff1a\u8f15\u9b06\u52d5\u614b\u5730\u5efa\u7acb\u8cc7\u6599\u5eab\u6aa2\u8996\uff0c\u591a\u8868\u67e5\u8a62\u4e0d\u518d\u7169\u60f1\u3002<br \/> \u95dc\u806f\u6a21\u578b\uff1a\u8b93\u4f60\u4ee5\u51fa\u4e4e\u610f\u6599\u7684\u7c21\u55ae\u3001\u9748\u6d3b\u7684\u6a21\u5f0f\u5b8c\u6210\u591a\u8868\u7684\u95dc\u806f\u64cd\u4f5c\u3002<br \/> \u5206\u7d44\u6a21\u7d44\uff1a\u4e0d\u7528\u64d4\u5fc3\u5927\u9805\u76ee\u7684\u5206\u5de5\u5354\u8abf\u548c\u90e8\u7f72\u554f\u984c\uff0c\u5206\u7d44\u6a21\u7d44\u5e6b\u4f60\u89e3\u6c7a\u8de8\u9805\u76ee\u7684\u96e3\u984c\u3002<br \/> &nbsp;\u6a21\u677f\u5f15\u64ce\uff1a\u7cfb\u7d71\u5167\u5efa\u4e86\u4e00\u6b3e\u5353\u8d8a\u7684\u57fa\u65bcXML\u7684\u7de8\u8b6f\u578b\u6a21\u677f\u5f15\u64ce\uff0c\u652f\u63f4\u5169\u7a2e\u985e\u578b\u7684\u6a21\u677f\u6a19\u7c64\uff0c\u878d\u5408\u4e86Smarty\u548cJSP\u6a19\u7c64\u5eab\u7684\u601d\u60f3\uff0c\u652f\u63f4\u6a19\u7c64\u5eab\u5ef6<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\u4f38\u3002\u901a\u904e\u9a45\u52d5\u9084\u53ef\u4ee5\u652f\u63f4Smarty\u3001EaseTemplate\u3001TemplateLite\u3001Smart\u7b49\u7b2c\u4e09\u65b9\u6a21\u677f\u5f15\u64ce\u3002<\/strong><\/font><\/p>\n<p> &nbsp;AJAX\u652f\u63f4\uff1a\u5167\u5efaAJAX\u8cc7\u6599\u8fd4\u56de\u65b9\u6cd5\uff0c\u652f\u63f4JSON\u3001XML\u548ceva l\u683c\u5f0f\u8fd4\u56de\u4f7f\u7528\u8005\u7aef\uff0c\u4e26\u4e14\u7cfb\u7d71\u4e0d\u7d81\u5b9a\u4efb\u4f55AJAX\u985e\u5eab\uff0c\u53ef\u96a8\u610f\u4f7f\u7528\u81ea\u5df1\u719f\u6089\u7684AJAX\u985e<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\u5eab\u9032\u884c\u64cd\u4f5c\u3002<\/strong><\/font><\/p>\n<p> \u591a\u8a9e\u7cfb\u652f\u63f4\uff1a\u7cfb\u7d71\u652f\u63f4\u8a9e\u7cfb\u5305\u529f\u80fd\uff0c\u9805\u76ee\u548c\u6a21\u7d44\u90fd\u53ef\u4ee5\u6709\u55ae\u7368\u7684\u8a9e\u7cfb\u5305\uff0c\u4e26\u4e14\u53ef\u4ee5\u81ea\u52d5\u6aa2\u9a57\u700f\u89bd\u5668\u8a9e\u7cfb\u81ea\u52d5\u8f09\u5165\u5c0d\u61c9\u7684\u8a9e\u7cfb\u5305\u3002<br \/> &nbsp;\u6a21\u5f0f\u5ef6\u4f38\uff1a\u9664\u4e86\u6a19\u6e96\u6a21\u5f0f\u5916\uff0c\u7cfb\u7d71\u5167\u5efa\u4e86Lite\u3001Thin\u548cCli\u6a21\u5f0f\uff0c\u91dd\u5c0d\u4e0d\u540c\u5c64\u7d1a\u7684\u61c9\u7528\u958b\u767c\u63d0\u4f9b\u6700\u4f73\u6838\u5fc3\u6846\u67b6\uff0c\u9084\u53ef\u4ee5\u81ea\u8a02\u6a21\u5f0f\u5ef6\u4f38\u3002<br \/> \u81ea\u52d5\u9a57\u8b49\u548c\u5b8c\u6210\uff1a\u81ea\u52d5\u5b8c\u6210\u8868\u55ae\u8cc7\u6599\u7684\u9a57\u8b49\u548c\u904e\u6ffe\uff0c\u751f\u6210\u5b89\u5168\u7684\u8cc7\u6599\u5c0d\u8c61\u3002<br \/> &nbsp;\u6b04\u4f4d\u985e\u578b\u6aa2\u9a57\uff1a\u6b04\u4f4d\u985e\u578b\u5f37\u5236\u8f49\u63db\uff0c\u78ba\u4fdd\u8cc7\u6599\u5beb\u5165\u548c\u67e5\u8a62\u66f4\u5b89\u5168\u3002<br \/> \u8cc7\u6599\u5eab\u7279\u6027\uff1a\u7cfb\u7d71\u652f\u63f4\u591a\u8cc7\u6599\u5eab\u9023\u7dda\u548c\u52d5\u614b\u5207\u63db\u6a5f\u5236\uff0c\u652f\u63f4\u5206\u6563\u5f0f\u8cc7\u6599\u5eab\u3002\u7336\u5982\u4f01\u696d\u958b\u767c\u7684\u4e00\u628a\u5229\u5203\uff0c\u8de8\u8cc7\u6599\u5eab\u61c9\u7528\u548c\u5206\u6563\u5f0f\u652f\u63f4\u5f9e\u6b64\u7121\u6182<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\u3002<\/strong><\/font><\/p>\n<p> &nbsp;\u5feb\u53d6\u6a5f\u5236\uff1a\u7cfb\u7d71\u652f\u63f4\u5167\u542b\u6a94\u6848\u6a21\u5f0f\u3001APC\u3001Db\u3001Memcache\u3001Shmop\u3001Eaccelerator\u548cXcache\u5728\u5167\u7684\u591a\u7a2e\u52d5\u614b\u8cc7\u6599\u5feb\u53d6\u985e\u578b\uff0c\u4ee5\u53ca\u53ef\u5b9a\u5236\u7684\u975c\u614b<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\u5feb\u53d6\u898f\u5247\uff0c\u4e26\u63d0\u4f9b\u4e86\u5feb\u6377\u65b9\u6cd5\u9032\u884c\u5b58\u53d6\u64cd\u4f5c\u3002<\/strong><\/font><\/p>\n<p> \u5ef6\u4f38\u6a5f\u5236\uff1a\u7cfb\u7d71\u652f\u63f4\u5167\u542b\u985e\u5eab\u5ef6\u4f38\u3001\u9a45\u52d5\u5ef6\u4f38\u3001\u61c9\u7528\u5ef6\u4f38\u3001\u6a21\u578b\u5ef6\u4f38\u3001\u63a7\u5236\u5668\u5ef6\u4f38\u3001\u6a19\u7c64\u5eab\u5ef6\u4f38\u3001\u6a21\u677f\u5f15\u64ce\u5ef6\u4f38\u3001Widget\u5ef6\u4f38\u3001\u884c\u70ba\u5ef6\u4f38\u548c<\/strong><\/font><font size=\"3\"><strong><font size=\"3\"><strong>\u6a21\u5f0f\u5ef6\u4f38\u5728\u5167\u7684\u5f37\u5927\u9748\u6d3b\u7684\u5ef6\u4f38\u6a5f\u5236\uff0c\u8b93\u4f60\u4e0d\u518d\u53d7\u9650\u65bc\u6838\u5fc3\u7684\u4e0d\u8db3\u548c\u7121\u6240\u9069\u5f9e\uff0c\u96a8\u5fc3DIY\u81ea\u5df1\u7684\u6846\u67b6\u548c\u5ef6\u4f38\u61c9\u7528\u3002<\/strong><\/font><\/strong><\/font><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/por.tw\/codesattachments\/201307\/0171999597.jpg\"  width=\"650\" height=\"398\" \/>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/p>\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\uff1a1656 K &nbsp;&nbsp; &nbsp;<br \/> \u904b\u884c\u74b0\u5883\uff1aPHP\/MySQL &nbsp;&nbsp; &nbsp;<br \/> \u6e90\u7a0b\u5f0f\u78bc\u8a9e\u7cfb\uff1a<\/font><\/strong><\/font><font size=\"3\"><strong><font color=\"#800000\">\u7c21\u9ad4\u4e2d\u6587<br \/> \u6e90\u7a0b\u5f0f\u78bc\u4f5c\u8005\uff1aThinkPHP &nbsp;&nbsp; &nbsp;<br \/> \u6388\u6b0a\u5f62\u5f0f\uff1a\u514d\u8cbb\u7248<br \/> \u5b98\u65b9\u7db2\u7ad9\uff1ahttp:\/\/www.thinkphp.cn\/ &nbsp;<\/font>&nbsp; &nbsp;&nbsp;&nbsp; &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\">ThinkPHP 3.1.3\uff08\u958b\u767c\u6846\u67b6\uff09\u6e90\u7a0b\u5f0f\u78bc\u4e0b\u8f09\u7db2\u5740\uff1a<\/font><br \/> <\/strong><\/font><br \/> <!--mfileBegin-->899<!--mfileEnd--><\/p>\n<p><font size=\"3\"><strong>\u6a94\u6848\u5927\u5c0f\uff1a1.52MB<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>ThinkPHP\u662f\u4e00\u500b\u6548\u80fd\u5353\u8d8a\u4e26\u4e14\u529f\u80fd\u8c50\u5bcc\u7684\uff0c\u958b\u6e90\u7684\uff0c\u8f15\u91cf\u7d1aPHP\u958b\u767c\u6846\u67b6\uff0c\u672c\u8eab\u5177\u6709\u5f88\u591a\u7684\u539f\u5275\u7279\u6027\uff0c\u4e26\u4e14\u5021\u5c0e\u5927 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1597,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,22],"tags":[70],"class_list":["post-860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codes","category-22","tag-70"],"_links":{"self":[{"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/posts\/860"}],"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=860"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/posts\/860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/media\/1597"}],"wp:attachment":[{"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/media?parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/categories?post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/codes\/wp-json\/wp\/v2\/tags?post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}