<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":176,"date":"2011-10-08T11:37:00","date_gmt":"2011-10-08T11:37:00","guid":{"rendered":"http:\/\/www.01xj.net\/0\/?p=176"},"modified":"2011-10-08T11:37:00","modified_gmt":"2011-10-08T11:37:00","slug":"php%e7%94%9f%e6%88%90%e4%be%bf%e4%ba%8e%e6%89%93%e5%8d%b0%e7%9a%84%e7%bd%91%e9%a1%b5_php%e5%ae%9e%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=176","title":{"rendered":"php\u751f\u6210\u4fbf\u4e8e\u6253\u5370\u7684\u7f51\u9875_php\u5b9e\u4f8b"},"content":{"rendered":"<p>\u5f88\u591a\u65b0\u95fb\u548c\u4fe1\u606f\u7ad9\u70b9\u90fd\u63d0\u4f9b\u4e86\u4e00\u79cd\u751f\u6210\u4fbf\u4e8e\u6253\u5370\u7684\u7f51\u9875\u7684\u65b9\u6cd5\uff0c\u6240\u4ea7\u751f\u7684\u9875\u9762\u7684\u6392\u7248\u5e03\u5c40\u66f4\u6709\u5229\u4e8e\u6253\u5370\u673a\u7684\u6253\u5370\u8f93\u51fa\uff0c\u8fd9\u79cd \u65b9\u6cd5\u65b9\u4fbf\u4e86\u6211\u4eec\u4ece\u7f51\u9875\u4e0a\u76f4\u63a5\u6253\u5370\u6211\u4eec\u6240\u9700\u7684\u5185\u5bb9\uff0c\u800c\u4e0d\u5fc5\u4e3a\u683c\u5f0f\u4e0d\u89c4\u6574\u4f24\u8111\u7b4b\uff0c\u6216\u8005\u7c98\u8d34\u5230\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u91cd\u65b0\u6392\u7248\u3002\u7136\u800c\uff0c\u6211\u5374\u6ca1\u770b\u5230\u6709\u591a\u5c11\u7f51\u7ad9\u8be6\u7ec6\u89e3\u91ca\u8fd9\u4e9b\u662f \u5982\u4f55\u5b9e\u73b0\u7684\uff0c\u5728\u8fd9\u91cc\u6211\u63d0\u4f9b\u4e00\u5c0f\u6bb5\u4ee3\u7801\u2014\u2014\u7528PHP\u6765\u5b9e\u73b0\u751f\u6210\u4fbf\u4e8e\u6253\u5370\u7684\u7f51\u9875\u5e76\u4e0d\u662f\u50cf\u60f3\u8c61\u7684\u90a3\u4e48\u96be\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002<\/p>\n<p>\u8981\u751f\u6210\u4fbf\u4e8e\u6253\u5370\u7684\u7f51\u9875\uff0c\u9700\u8981\u6211\u4eec\u505a\u54ea\u4e9b\u5de5\u4f5c\u5462\uff1f\u8fd9\u4e3b\u8981\u53d6\u51b3\u4e8e\u4f60\u7684\u7f51\u7ad9\u7279\u70b9\uff0c\u548c\u4f60\u60f3\u8981\u751f\u6210\u7684\u7248\u5f0f\u7279\u5f81\uff0c\u4e0d\u8fc7\u6709\u4e00\u4e9b\u57fa\u672c\u5904\u7406\u9700\u8981\u5b8c\u6210\uff1a<\/p>\n<p>1\u3001    \u9875\u5bbd\u2014\u2014\u751f\u6210\u9875\u9762\u7684\u5bbd\u5ea6\u5fc5\u987b\u9650\u5236\uff0c\u8981\u6253\u5370A4\u7684\u7eb8\uff0c\u5927\u7ea6\u7f51\u9875\u8981\u5728630\u50cf\u7d20\u5bbd\u3002<br \/>\n2\u3001    \u9875\u9762\u80cc\u666f\u8272\u2014\u2014\u4e3a\u4e86\u7f8e\u89c2\uff0c\u5f88\u591a\u7f51\u9875\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u80cc\u666f\u8272\u548c\u80cc\u666f\u56fe\u7247\uff0c\u4f46\u662f\u4f5c\u4e3a\u8981\u6253\u5370\u7684\u7f51\u9875\uff0c\u6700\u5408\u9002\u6548\u679c\u7684\u8fd8\u662f\u767d\u5e95\u9ed1\u5b57\u4e3a\u597d\u3002<br \/>\n3\u3001    \u5e7f\u544a\u6761\u2014\u2014\u79fb\u9664\u9875\u9762\u4e0a\u7684\u5e7f\u544a<br \/>\n4\u3001    \u8868\u683c\u7684\u80cc\u666f\u8272\u2014\u2014\u6211\u4eec\u7ecf\u5e38\u5728\u8868\u683c\u4e2d\u7528\u989c\u8272\u6765\u5f3a\u8c03\u4fe1\u606f\u548c\u6807\u9898\uff0c\u8fd9\u4e9b\u4e5f\u5fc5\u987b\u79fb\u9664\u3002<br \/>\n5\u3001    \u94fe\u63a5\u2014\u2014\u9875\u9762\u4e2d\u7684\u8d85\u94fe\u63a5\u4e5f\u5fc5\u987b\u6539\u53d8\u4ee5\u4f7fURL\u53ef\u89c1\uff0c\u4f8b\u5982\uff1a<a href=http:\/\/www.gbdirect.co.uk\/ >GBDirect<\/a>\u5e94\u663e\u793a\u4e3aGBDirect (http:\/\/www.gbdirect.co.uk\/)<br \/>\n6\u3001    \u83dc\u5355\u2014\u2014\u83dc\u5355\u662f\u6700\u96be\u88ab\u7981\u6b62\u7684\uff0c\u7136\u800c\u5982\u679c\u4f60\u7684\u9875\u9762\u662f\u4f7f\u7528\u6a21\u677f\u6765\u6784\u5efa\u7684\u8bdd\uff0c\u90a3\u4e48\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u6362\u7528\u4fbf\u4e8e\u6253\u5370\u7684\u6ca1\u6709\u83dc\u5355\u7684\u6a21\u677f\u3002<\/p>\n<p>\u8fd9\u4e9b\u751f\u6210\u4fbf\u4e8e\u6253\u5370\u9875\u9762\u7684\u6240\u6709\u65b9\u6cd5\uff0c\u90fd\u662f\u975e\u5e38\u7b80\u5355\u7684\uff0c\u9700\u8981\u5b9e\u73b0\u7684\u65f6\u5019\u4f60\u53ef\u4ee5\u88ab\u4e0b\u9762\u7684\u4ee3\u7801\u653e\u5230\u7f51\u9875\u4e2d\uff1a<br \/>\n<?\n\/\/\u4ece\u73af\u5883\u53d8\u91cf\u4e2d\u5f97\u5230\u6587\u4ef6\u7684\u76f8\u5bf9\u8def\u5f84\n$page=substr($SCRIPT_NAME,1);\n\n\/\/ \u663e\u793a\u4e00\u4e2a\u56fe\u6807\u5e76\u8fde\u63a5\u5230Printer Friendly Pages\n\/\/ \u4fbf\u4e8e\u6253\u5370\u9875\u9762\u7684\u751f\u6210\u7a0b\u5e8fpfp.php\n?><br \/>\n<a href=\"pfp.php?page=<?=$page?>&#8220;>;<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"printer.gif\" width=\"36\" height=\"36\" border=\"0\"\nalt=\"Click here to produce a printer friendly page\"><\/p>\n<p><font face=\"arial, helvetica\" size=\"2\"><br \/>\nPrinter Friendly Version<br \/>\n<\/font><br \/>\n<\/a><br \/>\n\u628a\u5f53\u524d\u9875\u9762\u7684\u540d\u79f0\u4f20\u9012\u5230pfp.php\u7a0b\u5e8f\u4e2d\uff0c\u8fd9\u4e2a\u7a0b\u5e8f\u4f7f\u7528PHP\u7684\u201cfile\u201d\u51fd\u6570\u628a\u9875\u9762\u4f5c\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u6765\u5904\u7406\u3002\u5f53\u8fd9\u4e2a\u9875\u9762\u88ab\u8f7d\u5165\u7684\u65f6\u5019\uff0c\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u589e\u52a0\u3001\u6539\u5199\u6216\u5220\u9664HTML\u7247\u6bb5\u3002<\/p>\n<p><?\nereg(^.*\/,$SCRIPT_FILENAME,$tmp);\n$page_path = substr($tmp[0],0,-1);\n?><\/p>\n<p><html><\/p>\n<p><head><br \/>\n<base href=\"http:\/\/<? echo $HTTP_HOST ?>\/&#8221;><br \/>\n<meta name=\"robots\" content=\"no index, no follow\"><br \/>\n<title>Printer Friendly Page<\/title><br \/>\n<\/head><\/p>\n<p><body bgcolor=\"white\"><\/p>\n<p><font face=\"Arial,Helvetica\"><\/p>\n<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"630\" >\n<tr>\n<td valign=\"top\">\n<?\n\/\/ check if the filename for the page exists\nif (!file_exists(\"$page.inc\"))\n{\necho \"<strong>Error &#8211; The page <?=$page?>&#8220;.<br \/>\n&#8220;does not exist on this site.<\/strong>&#8220;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\n\/\/ \u5f97\u5230\u9875\u9762\u7684\u5185\u5bb9\u5e76\u628a\u5b83\u653e\u5230\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d<br \/>\n$fcontents = join(, file(&#8220;$page.inc&#8221;));<\/p>\n<p>\/\/ \u5ffd\u7565\u989c\u8272\u5c5e\u6027\uff0c\u8f6c\u6362\u4ee5\u2019ignore\u2019\u66ff\u4ee3\u2019color\u2019<\/p>\n<p>$fcontents = ereg_replace(color,ignore,$fcontents);<\/p>\n<p>\/\/ \u53bb\u9664\u8d85\u94fe\u63a5\u4e2d\u7684 \u201c_blank\u201d<br \/>\n$fcontents = ereg_replace(target=\\&#8221;_blank\\&#8221;,,$fcontents);<\/p>\n<p>\/\/ \u66ff\u6362<\/a>\u6807\u8bb0<br \/>\n$fcontents = ereg_replace(<\/a>,,$fcontents);<\/p>\n<p>\/\/ \u663e\u793aURL\u7684\u7edd\u5bf9\u5730\u5740<br \/>\n$fcontents = ereg_replace(<a[^h]*href=\"(http:\/\/[^\"]*)\"[^>]*>;([^]*),<br \/>\n<strong>\\\\2<\/strong><em>(\\\\1)<\/em>,$fcontents);<\/p>\n<p>\/\/ \u628a\u76f8\u5bf9\u94fe\u63a5\u8f6c\u4e3a\u7edd\u5bf9\u94fe\u63a5<br \/>\n$fcontents = ereg_replace(<br \/>\n<a[^h]*href=\"([^\"]*)\"[^>]*>([^]*),<br \/>\n&#8220;<strong>\\\\2<\/strong><em>(http:\/\/$HTTP_HOST\/\\\\1)<\/em>&#8220;;,<br \/>\n$fcontents);<\/p>\n<p>\/\/ \u80cc\u666f\u989c\u8272\u6539\u56de\u767d\u8272<br \/>\n$fcontents = ereg_replace(<body bgignore,<body bgcolor,  $fcontents);\n\n\/\/ if any markers left restore link end element\n$fcontents = ereg_replace(,<\/a>,$fcontents);<\/p>\n<p>\/\/ \u8f93\u51fa\u9875\u9762<br \/>\necho $fcontents;<br \/>\n}<br \/>\n?>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\n<hr width=\"90%\"><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\n<? include(\"$page_path\/footer.inc\"); ?>\n<\/td>\n<\/tr>\n<\/table>\n<p><\/font><\/p>\n<p><\/body><br \/>\n<\/html><br \/>\n\u8fd9\u6837\u4fbf\u4e8e\u6253\u5370\u7684\u9875\u9762\u5c31\u751f\u6210\u4e86\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u80fd\u6709\u5e2e\u52a9\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f88\u591a\u65b0\u95fb\u548c\u4fe1\u606f\u7ad9\u70b9\u90fd\u63d0\u4f9b\u4e86\u4e00\u79cd\u751f\u6210\u4fbf\u4e8e\u6253\u5370\u7684\u7f51\u9875\u7684\u65b9\u6cd5\uff0c\u6240\u4ea7\u751f\u7684\u9875\u9762&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-phpjsshell"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":1,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":177,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions\/177"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}