{"id":31021,"date":"2024-11-25T09:18:33","date_gmt":"2024-11-25T01:18:33","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31021\/"},"modified":"2024-11-25T09:18:33","modified_gmt":"2024-11-25T01:18:33","slug":"phpcms%e6%89%93%e4%b8%8d%e5%bc%80%e5%90%8e%e5%8f%b0%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31021\/","title":{"rendered":"phpcms\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5e168882c5889802.jpg\" class=\"aligncenter\" title=\"phpcms\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"phpcms\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e\uff1f<\/strong><\/p>\n<p>phpcms V9 \u5b89\u88c5\u540e\u53f0\u65e0\u6cd5\u6253\u5f00\u89e3\u51b3\u65b9\u6848<\/p>\n<p>\u7b2c\u4e00\u79cd\u53ef\u80fd\uff1a<\/p>\n<p>phpcms v9 \u767b\u5f55\u662f\u91c7\u7528session \uff0c\u4fdd\u5b58session \u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u4e00\u79cd\u662f\u6570\u636e\u5e93\u5b58\u50a8\u7684\u65b9\u5f0f\uff0c\u4e00\u79cd\u662f\u6587\u4ef6\u5b58\u50a8\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u662f\u6570\u636e\u5e93\u5b58\u50a8\u65b9\u5f0f\u3002\u6709\u65f6\u6570\u636e\u5e93\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u884c\uff0c\u53ef\u4ee5\u5728 cachesconfigssystem.php \u4e2d\u4fee\u6539sesion \u7684\u5b58\u50a8\u65b9\u5f0f\/\/Session\u914d\u7f6e &#8216;session_storage&#8217; =&gt; &#8216;mysql&#8217;,\u5c06\u5176\u6539\u4e3a\/\/Session\u914d\u7f6e&#8217;session_storage&#8217; =&gt; &#8216;files&#8217;\uff0c\u8bd5\u8bd5\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd\u53ef\u80fd\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>php\u914d\u7f6e\u73af\u5883\u95ee\u9898\uff0c\u5728PHP.INI \u4e2d \u6539\u6210register_globals = On \u6253\u5f00 \u9ed8\u8ba4\u662fregister_globals = off,\u518d\u5c31\u662f\u8981\u4fdd\u8bc1session.cookie_path =\u3000&#8221;\u7f13\u5b58\u6587\u4ef6\u4fdd\u5b58\u76ee\u5f55\uff0c\u6539\u4e3a&#8221;session.cookie_path = \/&#8221;\u90fd\u6709\u80af\u80fd\u65e0\u6cd5\u767b\u5f55\u3002<\/p>\n<p>\u7b2c\u4e09\u79cd\uff1a<\/p>\n<p>hosts \u6587\u4ef6\u95ee\u9898\uff0c\u5c06\u4f60\u60f3\u8981\u7684\u57df\u540d\u6307\u5411\u672c\u5730&nbsp; \u4f8b\u5982\uff1aww.huxiaoguang.com&nbsp; &nbsp;127.0.0.1 \u589e\u52a0\u8fd9\u4e00\u884c \uff0c\u57df\u540d\u6539\u6210\u4f60\u60f3\u8981\u7684\u57df\u540d \uff0c\u7136\u540e\u518d\u672c\u5730\u4f7f\u7528\u4f60\u7684\u57df\u540d\u5b89\u88c5PHPCMS ,\u8fd9\u6837\u6709\u4e2a\u597d\u5904\u5c31\u662f\u907f\u514d\u4f60\u5728\u672c\u5730\u5b89\u88c5\u540e \uff0c\u7136\u540e\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e4b\u540e\u53c8\u8981\u4fee\u6539cachesconfigssystem.php \u914d\u7f6e\u6587\u4ef6\uff0c\u800c\u4e14\u8fd8\u8981\u6e05\u7a7a\u4e00\u4e9b\u7f13\u5b58.<\/p>\n<p>PHP\u4e2d\u6587\u7f51\uff0c\u5927\u91cf\u7684\u514d\u8d39\uff0c\u6b22\u8fce\u5728\u7ebf\u5b66\u4e60\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e\uff1f phpcms V9 \u5b89\u88c5\u540e\u53f0\u65e0\u6cd5\u6253\u5f00\u89e3\u51b3\u65b9\u6848 \u7b2c\u4e00\u79cd\u53ef\u80fd\uff1a phpcms v9 \u767b\u5f55\u662f\u91c7\u7528session \uff0c\u4fdd\u5b58session \u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u4e00\u79cd\u662f\u6570\u636e\u5e93\u5b58\u50a8\u7684\u65b9\u5f0f\uff0c\u4e00\u79cd\u662f\u6587\u4ef6\u5b58\u50a8\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u662f\u6570\u636e\u5e93\u5b58\u50a8\u65b9\u5f0f\u3002\u6709\u65f6\u6570\u636e\u5e93\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u884c\uff0c\u53ef\u4ee5\u5728 cachesconfigssystem.php \u4e2d\u4fee\u6539sesion \u7684\u5b58\u50a8\u65b9\u5f0f\/\/Session\u914d\u7f6e &#8216;session_storage&#8217; =&gt; &#8216;mysql&#8217;,\u5c06\u5176\u6539\u4e3a\/\/Session\u914d\u7f6e&#8217;session_storage&#8217; =&gt; &#8216;files&#8217;\uff0c\u8bd5\u8bd5\u3002 \u7b2c\u4e8c\u79cd\u53ef\u80fd\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b php\u914d\u7f6e\u73af\u5883\u95ee\u9898\uff0c\u5728PHP.INI \u4e2d \u6539\u6210register_globals = On \u6253\u5f00 \u9ed8\u8ba4\u662fregister_globals = off,\u518d\u5c31\u662f\u8981\u4fdd\u8bc1session.cookie_path =\u3000&#8221;\u7f13\u5b58\u6587\u4ef6\u4fdd\u5b58\u76ee\u5f55\uff0c\u6539\u4e3a&#8221;session.cookie_path = \/&#8221;\u90fd\u6709\u80af\u80fd\u65e0\u6cd5\u767b\u5f55\u3002 \u7b2c\u4e09\u79cd\uff1a hosts \u6587\u4ef6\u95ee\u9898\uff0c\u5c06\u4f60\u60f3\u8981\u7684\u57df\u540d\u6307\u5411\u672c\u5730&nbsp; \u4f8b\u5982\uff1aww.huxiaoguang.com&nbsp; &nbsp;127.0.0.1 \u589e\u52a0\u8fd9\u4e00\u884c \uff0c\u57df\u540d\u6539\u6210\u4f60\u60f3\u8981\u7684\u57df\u540d \uff0c\u7136\u540e\u518d\u672c\u5730\u4f7f\u7528\u4f60\u7684\u57df\u540d\u5b89\u88c5PHPCMS ,\u8fd9\u6837\u6709\u4e2a\u597d\u5904\u5c31\u662f\u907f\u514d\u4f60\u5728\u672c\u5730\u5b89\u88c5\u540e \uff0c\u7136\u540e\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4e4b\u540e\u53c8\u8981\u4fee\u6539cachesconfigssystem.php \u914d\u7f6e\u6587\u4ef6\uff0c\u800c\u4e14\u8fd8\u8981\u6e05\u7a7a\u4e00\u4e9b\u7f13\u5b58. PHP\u4e2d\u6587\u7f51\uff0c\u5927\u91cf\u7684\u514d\u8d39\uff0c\u6b22\u8fce\u5728\u7ebf\u5b66\u4e60\uff01 \u4ee5\u4e0a\u5c31\u662f\u6253\u4e0d\u5f00\u540e\u53f0\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-31021","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=31021"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31021\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}