{"id":61026,"date":"2025-04-26T08:18:50","date_gmt":"2025-04-26T00:18:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/61026\/"},"modified":"2025-04-26T08:18:50","modified_gmt":"2025-04-26T00:18:50","slug":"zen-cart%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/61026\/","title":{"rendered":"zen-cart\u4e71\u7801\u95ee\u9898\u603b\u7ed3"},"content":{"rendered":"<p>\u5728\u4f7f\u7528zen-cart\u5236\u4f5c\u591a\u56fd\u8bed\u8a00\u7684 \u7f51\u7ad9\u65f6\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u4e71\u7801\u95ee\u9898\uff0c\u4e0b\u9762\u505a\u4e00\u4e2a\u603b\u7ed3\u3002 &nbsp; &nbsp;1. \u6570\u636e\u5e93\u9020\u6210\u7684\u4e71\u7801\u95ee\u9898\u3002\u5728\u540e\u53f0\u5f55\u5165\u6570\u636e\u65f6\u548c\u524d\u53f0\u5c55\u793a\u65f6\uff0c\u9875\u9762\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\u53ef\u80fd\u5bfc\u81f4\u8be5\u95ee\u9898\u3002\u4f8b\u5982\u540e\u53f0\u7ba1\u7406\u5f55\u5165\u6570\u636e\u65f6\u4f7f\u7528\u7684\u7f16\u7801\u4e3autf-8,\u800c\u524d\u53f0\u663e\u793a\u65f6\uff0c\u7f16\u7801\u4e3aiso-8859-7\uff0c\u5219\u4f1a\u4ea7\u751f\u4e71\u7801\u3002\u89e3\u51b3\u529e\u6cd5\uff0c\u5c06\u540e\u53f0\u8bed\u8a00\u5305\u4e2d\u7684charset\u8bbe\u7f6e\u4e3a iso-8859-7,\u6216\u8005\u5c06\u524d\u53f0\u8bed\u8a00\u5305\u4e2d\u7684charset\u8bbe\u7f6e\u4e3a utf-8\u3002\u5bf9\u5355\u8bed\u79cd\u7684\u7ad9\u70b9\u53ef\u4ee5\u91c7\u53d6\u8fd9\u79cd\u65b9\u5f0f\u89e3\u51b3\u3002 &nbsp; &nbsp; &nbsp; &nbsp;2. \u5bf9\u4e8e\u591a\u8bed\u79cd\u7684\u7ad9\u70b9\uff0c\u82e5\u76f4\u63a5\u5c06\u7ad9\u70b9\u7684\u7f16\u7801\u4fee\u6539\u4e3a iso-8858-7\uff0c\u5219\u6709\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5176\u4ed6\u8bed\u8a00\u7684\u4e71\u7801\u95ee\u9898\u3002\u4f8b\u5982\uff1a\u5e0c\u814a\u7684\u7f16\u7801\u4e3a iso-8858-7,\u571f\u8033\u5176\u7684\u7f16\u7801\u4e3a iso-8858-9,\u82e5\u5728\u5e0c\u814a\u73af\u5883\u4e0b\u7f16\u8f91\u4ea7\u54c1\u4fe1\u606f\uff0c\u5219\u6b64\u65f6\u5f55\u5165\u6570\u636e\u5e93\u65f6\u7684\u7f16\u7801\u4e3a iso-8858-7\uff0c\u571f\u8033\u5176\u8bed\u8a00\u4e5f\u88ab\u8feb\u4ee5 iso-8858-7\u7684\u7f16\u7801\u5f55\u5165\u6570\u636e\u5e93\uff0c\u800c\u5728\u524d\u53f0\u53c8\u4e0d\u5f97\u4e0d\u4ee5 iso-8858-9\u7684\u7f16\u7801\u6765\u5c55\u793a\u571f\u8033\u5176\u8bed\u8a00\uff0c\u8fd9\u6837\u4ee5\u6765\u571f\u8033\u5176\u8bed\u8a00\u5c31\u53ef\u80fd\u51fa\u73b0\u4e71\u7801\u3002\u89e3\u51b3\u529e\u6cd5\uff0c\u591a\u4f59\u591a\u8bed\u79cd\u7684\u7ad9\u70b9\uff0c\u5168\u90e8\u91c7\u53d6 utf-8\u7684\u7f16\u7801\u683c\u5f0f\u3002 &nbsp; &nbsp; &nbsp; &nbsp;3. \u91c7\u53d6utf-8\u7f16\u7801\u683c\u5f0f\u540e\uff0c\u56e0\u4e3a\u4e00\u822c\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u4e0b\u6765\u7684\u8bed\u8a00\u5305\u4e2d\u7684\u6587\u4ef6\u90fd\u4e0d\u662futf-8\u683c\u5f0f\uff0c\u53ef\u80fd\u4e5f\u4f1a\u5bfc\u81f4\u4e00\u90e8\u5206\u8bed\u8a00\u51fa\u73b0\u4e71\u7801\u3002\u6240\u4ee5\uff0c\u6700\u597d\u5c06\u4e0b\u8f7d\u4e0b\u6765\u7684\u8bed\u8a00\u5305\u5168\u90e8\u8f6c\u5316\u4e3autf-8\u6587\u4ef6\u683c\u5f0f\uff0c\u4f60\u53ef\u4ee5\u7528\u6587\u672c\u7f16\u8f91\u5668\uff0cdreamweaver\uff0c\u6216\u8005\u5176\u4ed6\u7f16\u8f91\u5668\u5c06\u8bed\u8a00\u5305\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u8f6c\u5316\u4e3a utf-8 \u683c\u5f0f\u3002\u5982\u679c\u89c9\u5f97\u9ebb\u70e6\u7684\u8bdd\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\u7f16\u7801\u6279\u91cf\u8f6c\u5316\u5de5\u5177\uff08EncodingConvertor\uff09\uff0c\u8be5\u5de5\u5177\u53ef\u4ee5\u5c06\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u6240\u6709\u7684\u6587\u4ef6\u8fdb\u884c\u7f16\u7801\u8f6c\u5316\u3002\u8f6c\u5316\u7684\u65f6\u5019\u8981\u6ce8\u610f\uff0c\u539f\u7f16\u7801\u4e00\u5b9a\u8981\u9009\u62e9\u6b63\u786e\uff0c\u5982\u679c\u4e0d\u77e5\u9053\u539f\u7f16\u7801\u7684\u8bdd\uff0c\u6253\u5f00\u8bed\u8a00\u5305\u4e2d\u7684 language.php(\u8bf7\u5c06language\u66ff\u6362\u4e3a\u8bed\u8a00\u540d\u5b57\uff0c\u5982english.php,greek.php), \u770b\u770bCHARSET\u7684\u5b9a\u4e49\u662f\u4ec0\u4e48\u3002 &nbsp; &nbsp; &nbsp; 4. \u5c06\u7f16\u7801\u8f6c\u5316\u4e3a utf-8\u540e\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9875\u9762\u6bd4\u8f83\u9519\u4e86\u7684\u73b0\u8c61\uff0c\u8fd9\u662f\u56e0\u4e3a\u6587\u4ef6\u4ee5utf-8\u683c\u5f0f\u4fdd\u5b58\u65f6\uff0c\u81ea\u52a8\u5728\u6587\u4ef6\u5f00\u5934\u52a0\u4e0a\u4e86\u4e00\u4e2a unicode\u7b7e\u540d(BOM, Byte Order Mark), \u8fd9\u662f\u4e09\u4e2a\u4e0d\u53ef\u89c1\u7684\u5b57\u7b26\uff080xEF 0xBB 0xBF\uff09\uff0c\u7528\u4e8e\u8ba9\u4e00\u4e9b\u7f16\u8f91\u8f6f\u4ef6(\u5982\u8bb0\u4e8b\u672c)\u77e5\u9053\u8fd9\u4e2a\u6587\u4ef6\u662f \u4ee5 utf-8\u7f16\u7801\u7684\u3002php\u5728 require\u4ee5utf-8\u7f16\u7801\u7684\u6587\u4ef6\u65f6\uff0c\u5374\u6ca1\u6709\u80fd\u591f\u5ffd\u7565\u8fd9\u51e0\u4e2a\u5b57\u7b26\uff0c\u7ed3\u679c\u5bfc\u81f4\u8fd9\u51e0\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u8f93\u51fa\u7684\u4e00\u90e8\u5206\u3002\u8fd9\u65f6\u82e5\u8981\u65f6\u7f51\u9875\u5e03\u5c40\u6b63\u5e38\uff0c\u5219\u9700\u8981\u5c06\u8fd9\u4e2aBOM\u53bb\u6389\uff0c\u7528dreamweaver\u6253\u5f00\u6587\u4ef6\uff0c\u6309 ctrl+J,\u5728\u6807\u9898\/\u7f16\u7801\u9009\u9879\u5361\u4e2d\u53d6\u6d88\u9009\u4e2d\u201c\u5305\u62ecUnicode\u7b7e\u540d\u201d\uff0c\u518d\u4fdd\u5b58\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u6765\u6279\u91cf\u5904\u7406\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u7684BOM\uff08\u5c06\u4e0b\u9762\u7684\u6587\u4ef6\u653e\u5230\u6839\u76ee\u5f55\uff0c\u5728\u6d4f\u89c8\u4e00\u4e0b\u5c31\u53ef\u4ee5\u4e86\uff09\u3002&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php \/\/\u6b64\u6587\u4ef6\u7528\u4e8e\u5feb\u901f\u6d4b\u8bd5UTF8\u7f16\u7801\u7684\u6587\u4ef6\u662f\u4e0d\u662f\u52a0\u4e86BOM\uff0c\u5e76\u53ef\u81ea\u52a8\u79fb\u9664 \/\/By Bob Shen require(&#8216;includes\/application_top.php&#8217;); $basedir= DIR_FS_CATALOG. &#8216;includes\/languages&#8217;; \/\/\u4fee\u6539\u6b64\u884c\u4e3a\u9700\u8981\u68c0\u6d4b\u7684\u76ee\u5f55\uff0c\u70b9\u8868\u793a\u5f53\u524d\u76ee\u5f55 $auto=1; \/\/\u662f\u5426\u81ea\u52a8\u79fb\u9664\u53d1\u73b0\u7684BOM\u4fe1\u606f\u30021\u4e3a\u662f\uff0c0\u4e3a\u5426\u3002 handler($basedir); function handler($dir){ &nbsp; &nbsp; global $auto; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; if($dh = opendir($dir)){ &nbsp; &nbsp; &nbsp; &nbsp; while (($file = readdir($dh)) !== false) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($file!=&#8217;.&#8217; &amp;&amp; $file!=&#8217;..&#8217;) { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!is_dir($dir.&#8221;\/&#8221;.$file)){ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &#8220;filename: $dir\/$file &#8220;.checkBOM(&#8220;$dir\/$file&#8221;).&#8221; &lt;br&gt;&#8221;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handler($dir.&#8221;\/&#8221;.$file); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; closedir($dh); &nbsp; &nbsp; } } function checkBOM ($filename) { &nbsp; &nbsp; global $auto; &nbsp; &nbsp; $contents=file_get_contents($filename); &nbsp; &nbsp; $charset[1]=substr($contents, 0, 1); &nbsp; &nbsp; $charset[2]=substr($contents, 1, 1); &nbsp; &nbsp; $charset[3]=substr($contents, 2, 1); &nbsp; &nbsp; if (ord($charset[1])==239 &amp;&amp; ord($charset[2])==187 &amp;&amp; ord($charset[3])==191) { &nbsp; &nbsp; &nbsp; &nbsp; if ($auto==1) { &nbsp; &nbsp; &nbsp; &nbsp; $rest=substr($contents, 3); &nbsp; &nbsp; &nbsp; &nbsp; rewrite ($filename, $rest); &nbsp; &nbsp; &nbsp; &nbsp; return (&#8220;&lt;font color=red&gt;BOM found, automatically removed.&lt;\/font&gt;&#8221;); &nbsp; &nbsp; &nbsp; &nbsp; } else { &nbsp; &nbsp; &nbsp; &nbsp; return (&#8220;&lt;font color=red&gt;BOM found.&lt;\/font&gt;&#8221;); &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; else return (&#8220;BOM Not Found.&#8221;); &nbsp; &nbsp; } &nbsp; function rewrite ($filename, $data) { &nbsp; &nbsp; $filenum=fopen($filename,&#8221;w&#8221;); &nbsp; &nbsp; flock($filenum,LOCK_EX); &nbsp; &nbsp; fwrite($filenum,$data); &nbsp; &nbsp; fclose($filenum); } ?&gt; &nbsp; &nbsp; &nbsp; \u6309\u7167\u4ee5\u4e0a\u6b65\u9aa4\u5904\u7406\u540e\uff0c\u4e00\u822c\u5c31\u4e0d\u4f1a\u53d1\u73b0\u4e71\u7801\u4e86\u3002&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4f7f\u7528zen-cart\u5236\u4f5c\u591a\u56fd\u8bed\u8a00\u7684 \u7f51\u7ad9\u65f6\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u4e71\u7801\u95ee\u9898\uff0c\u4e0b\u9762\u505a\u4e00\u4e2a\u603b\u7ed3\u3002 &nbsp; &nbsp;1. \u6570\u636e\u5e93\u9020\u6210\u7684\u4e71\u7801\u95ee\u9898\u3002\u5728\u540e\u53f0\u5f55\u5165\u6570\u636e\u65f6\u548c\u524d\u53f0\u5c55\u793a\u65f6\uff0c\u9875\u9762\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\u53ef\u80fd\u5bfc\u81f4\u8be5\u95ee\u9898\u3002\u4f8b\u5982\u540e\u53f0\u7ba1\u7406\u5f55\u5165\u6570\u636e\u65f6\u4f7f\u7528\u7684\u7f16\u7801\u4e3autf-8,\u800c\u524d\u53f0\u663e\u793a\u65f6\uff0c\u7f16\u7801\u4e3aiso-8859-7\uff0c\u5219\u4f1a\u4ea7\u751f\u4e71\u7801\u3002\u89e3\u51b3\u529e\u6cd5\uff0c\u5c06\u540e\u53f0\u8bed\u8a00\u5305\u4e2d\u7684charset\u8bbe\u7f6e\u4e3a iso-8859-7,\u6216\u8005\u5c06\u524d\u53f0\u8bed\u8a00\u5305\u4e2d\u7684charset\u8bbe\u7f6e\u4e3a utf-8\u3002\u5bf9\u5355\u8bed\u79cd\u7684\u7ad9\u70b9\u53ef\u4ee5\u91c7\u53d6\u8fd9\u79cd\u65b9\u5f0f\u89e3\u51b3\u3002 &nbsp; &nbsp; &nbsp; &nbsp;2. \u5bf9\u4e8e\u591a\u8bed\u79cd\u7684\u7ad9\u70b9\uff0c\u82e5\u76f4\u63a5\u5c06\u7ad9\u70b9\u7684\u7f16\u7801\u4fee\u6539\u4e3a iso-8858-7\uff0c\u5219\u6709\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5176\u4ed6\u8bed\u8a00\u7684\u4e71\u7801\u95ee\u9898\u3002\u4f8b\u5982\uff1a\u5e0c\u814a\u7684\u7f16\u7801\u4e3a iso-8858-7,\u571f\u8033\u5176\u7684\u7f16\u7801\u4e3a iso-8858-9,\u82e5\u5728\u5e0c\u814a\u73af\u5883\u4e0b\u7f16\u8f91\u4ea7\u54c1\u4fe1\u606f\uff0c\u5219\u6b64\u65f6\u5f55\u5165\u6570\u636e\u5e93\u65f6\u7684\u7f16\u7801\u4e3a iso-8858-7\uff0c\u571f\u8033\u5176\u8bed\u8a00\u4e5f\u88ab\u8feb\u4ee5 iso-8858-7\u7684\u7f16\u7801\u5f55\u5165\u6570\u636e\u5e93\uff0c\u800c\u5728\u524d\u53f0\u53c8\u4e0d\u5f97\u4e0d\u4ee5 iso-8858-9\u7684\u7f16\u7801\u6765\u5c55\u793a\u571f\u8033\u5176\u8bed\u8a00\uff0c\u8fd9\u6837\u4ee5\u6765\u571f\u8033\u5176\u8bed\u8a00\u5c31\u53ef\u80fd\u51fa\u73b0\u4e71\u7801\u3002\u89e3\u51b3\u529e\u6cd5\uff0c\u591a\u4f59\u591a\u8bed\u79cd\u7684\u7ad9\u70b9\uff0c\u5168\u90e8\u91c7\u53d6 utf-8\u7684\u7f16\u7801\u683c\u5f0f\u3002 &nbsp; &nbsp; &nbsp; &nbsp;3. \u91c7\u53d6utf-8\u7f16\u7801\u683c\u5f0f\u540e\uff0c\u56e0\u4e3a\u4e00\u822c\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u4e0b\u6765\u7684\u8bed\u8a00\u5305\u4e2d\u7684\u6587\u4ef6\u90fd\u4e0d\u662futf-8\u683c\u5f0f\uff0c\u53ef\u80fd\u4e5f\u4f1a\u5bfc\u81f4\u4e00\u90e8\u5206\u8bed\u8a00\u51fa\u73b0\u4e71\u7801\u3002\u6240\u4ee5\uff0c\u6700\u597d\u5c06\u4e0b\u8f7d\u4e0b\u6765\u7684\u8bed\u8a00\u5305\u5168\u90e8\u8f6c\u5316\u4e3autf-8\u6587\u4ef6\u683c\u5f0f\uff0c\u4f60\u53ef\u4ee5\u7528\u6587\u672c\u7f16\u8f91\u5668\uff0cdreamweaver\uff0c\u6216\u8005\u5176\u4ed6\u7f16\u8f91\u5668\u5c06\u8bed\u8a00\u5305\u4e2d\u7684\u6bcf\u4e2a\u6587\u4ef6\u8f6c\u5316\u4e3a utf-8 \u683c\u5f0f\u3002\u5982\u679c\u89c9\u5f97\u9ebb\u70e6\u7684\u8bdd\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\u7f16\u7801\u6279\u91cf\u8f6c\u5316\u5de5\u5177\uff08EncodingConvertor\uff09\uff0c\u8be5\u5de5\u5177\u53ef\u4ee5\u5c06\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u6240\u6709\u7684\u6587\u4ef6\u8fdb\u884c\u7f16\u7801\u8f6c\u5316\u3002\u8f6c\u5316\u7684\u65f6\u5019\u8981\u6ce8\u610f\uff0c\u539f\u7f16\u7801\u4e00\u5b9a\u8981\u9009\u62e9\u6b63\u786e\uff0c\u5982\u679c\u4e0d\u77e5\u9053\u539f\u7f16\u7801\u7684\u8bdd\uff0c\u6253\u5f00\u8bed\u8a00\u5305\u4e2d\u7684 language.php(\u8bf7\u5c06language\u66ff\u6362\u4e3a\u8bed\u8a00\u540d\u5b57\uff0c\u5982english.php,greek.php), \u770b\u770bCHARSET\u7684\u5b9a\u4e49\u662f\u4ec0\u4e48\u3002 &nbsp; &nbsp; &nbsp; 4. \u5c06\u7f16\u7801\u8f6c\u5316\u4e3a utf-8\u540e\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9875\u9762\u6bd4\u8f83\u9519\u4e86\u7684\u73b0\u8c61\uff0c\u8fd9\u662f\u56e0\u4e3a\u6587\u4ef6\u4ee5utf-8\u683c\u5f0f\u4fdd\u5b58\u65f6\uff0c\u81ea\u52a8\u5728\u6587\u4ef6\u5f00\u5934\u52a0\u4e0a\u4e86\u4e00\u4e2a unicode\u7b7e\u540d(BOM, Byte Order Mark), \u8fd9\u662f\u4e09\u4e2a\u4e0d\u53ef\u89c1\u7684\u5b57\u7b26\uff080xEF 0xBB 0xBF\uff09\uff0c\u7528\u4e8e\u8ba9\u4e00\u4e9b\u7f16\u8f91\u8f6f\u4ef6(\u5982\u8bb0\u4e8b\u672c)\u77e5\u9053\u8fd9\u4e2a\u6587\u4ef6\u662f \u4ee5 utf-8\u7f16\u7801\u7684\u3002php\u5728 require\u4ee5utf-8\u7f16\u7801\u7684\u6587\u4ef6\u65f6\uff0c\u5374\u6ca1\u6709\u80fd\u591f\u5ffd\u7565\u8fd9\u51e0\u4e2a\u5b57\u7b26\uff0c\u7ed3\u679c\u5bfc\u81f4\u8fd9\u51e0\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u8f93\u51fa\u7684\u4e00\u90e8\u5206\u3002\u8fd9\u65f6\u82e5\u8981\u65f6\u7f51\u9875\u5e03\u5c40\u6b63\u5e38\uff0c\u5219\u9700\u8981\u5c06\u8fd9\u4e2aBOM\u53bb\u6389\uff0c\u7528dreamweaver\u6253\u5f00\u6587\u4ef6\uff0c\u6309 ctrl+J,\u5728\u6807\u9898\/\u7f16\u7801\u9009\u9879\u5361\u4e2d\u53d6\u6d88\u9009\u4e2d\u201c\u5305\u62ecUnicode\u7b7e\u540d\u201d\uff0c\u518d\u4fdd\u5b58\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u4ee3\u7801\u6765\u6279\u91cf\u5904\u7406\u4e00\u4e2a\u6587\u4ef6\u5939\u4e2d\u7684BOM\uff08\u5c06\u4e0b\u9762\u7684\u6587\u4ef6\u653e\u5230\u6839\u76ee\u5f55\uff0c\u5728\u6d4f\u89c8\u4e00\u4e0b\u5c31\u53ef\u4ee5\u4e86\uff09\u3002&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php \/\/\u6b64\u6587\u4ef6\u7528\u4e8e\u5feb\u901f\u6d4b\u8bd5UTF8\u7f16\u7801\u7684\u6587\u4ef6\u662f\u4e0d\u662f\u52a0\u4e86BOM\uff0c\u5e76\u53ef\u81ea\u52a8\u79fb\u9664 \/\/By [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-61026","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61026","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=61026"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/61026\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=61026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=61026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=61026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}