{"id":671,"date":"2015-08-07T15:25:34","date_gmt":"2015-08-07T07:25:34","guid":{"rendered":"http:\/\/web.jofar.cn\/?p=671"},"modified":"2015-08-07T15:25:34","modified_gmt":"2015-08-07T07:25:34","slug":"_post%e3%80%81globalshttp_raw_post_data%e5%92%8cfile_get_contentsphpinput","status":"publish","type":"post","link":"https:\/\/web.jofar.cn\/?p=671","title":{"rendered":"$_POST\u3001$GLOBALS[&#8216;HTTP_RAW_POST_DATA&#8217;]\u548cfile_get_contents(&#8216;php:\/\/input&#8217;)"},"content":{"rendered":"<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u6700\u8fd1\u5728\u5f00\u53d1\u5fae\u4fe1\u63a5\u53e3\uff0c\u73af\u5883\u662fphp5.6\uff0c\u4f46php5.6\u4e2d\uff0c<br \/>\n\tThis feature has been DEPRECATED as of PHP 5.6.0. Relying on this feature is highly discouraged.\n<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u5c31\u662f\uff1a \u6b64\u529f\u80fd\u5728php5.6\u5df2\u88ab\u5f03\u7528\u7684PHP5.6.0\u7684\u3002\u4f9d\u6258\u8fd9\u4e2a\u529f\u80fd\u662f\u975e\u5e38\u5efa\u8bae\u7981\u7528\u3002\n<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u6240\u4ee5\u6539\u7528file_get_contents(&lsquo;php:\/\/input&#39;)\u6765\u4ee3\u66ff\uff1a\n<\/p>\n<div class=\"dp-highlighter bg_php\" style=\"font-family: Consolas, 'Courier New', Courier, mono, serif; border: 1px dashed rgb(153, 153, 153); font-size: 12px; width: 936.53125px; overflow: auto; padding-top: 1px; color: rgb(0, 0, 0); line-height: 26px; margin: 18px 0px !important; background-color: rgb(245, 245, 245);\">\n<ol class=\"dp-c\" start=\"1\" style=\"margin: 0px; padding: 5px 0px; border: none; position: relative; color: rgb(92, 92, 92);\">\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\"><span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">public<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;<\/span><span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">function<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;__construct(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$token<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$wxuser<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;=&nbsp;<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">){&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$this<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;-&gt;&nbsp;auth(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$token<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$wxuser<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">)&nbsp;||&nbsp;<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">exit<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">;&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">if<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(IS_GET){&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">echo<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$_GET<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">[<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;echostr&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">]);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">exit<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">;&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">else<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">{&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$xml<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;=&nbsp;<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">file_get_contents<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&quot;php:\/\/input&quot;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$xml<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;=&nbsp;<\/span><span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">new<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;SimpleXMLElement(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$xml<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$xml<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;||&nbsp;<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">exit<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">;&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">foreach<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$xml<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;<\/span><span class=\"keyword\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 0, 255); font-weight: bold; background-color: inherit;\">as<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$key<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;=&gt;&nbsp;<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$value<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">){&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$this<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;-&gt;&nbsp;data[<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$key<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">]&nbsp;=&nbsp;<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">strval<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$value<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<\/ol>\n<\/div>\n<p>\n\t<span style=\"white-space: pre;\">\u4e0a<\/span>\u8ff0\u4ee3\u7801\u662f\u622a\u53d6\u7684\u4e00\u4e2a\u7247\u6bb5\uff0c\u610f\u601d\u4e3a\u628a\u63a5\u6536\u5230\u7684\u5fae\u4fe1\u4f20\u8fc7\u6765\u7684xml\u89e3\u6790\u4e3a\u6570\u7ec4\u3002\u5176\u4e2d\u6709\u4e00\u5904file_get_contents(&#39;php:\/\/input&#39;)\uff0c\u540e\u7ecf\u67e5\u8bc1\uff0c\u5fae\u4fe1\u7ed9\u5f00\u53d1\u8005\u8d26\u53f7\u586b\u5199\u7684url\u53d1\u9001\u7684\u662fxml\u6570\u636e\uff0c\u4f46PHP\u9ed8\u8ba4\u53ea\u8bc6\u522bapplication\/x-www.form-urlencoded\u6807\u51c6\u7684\u6570\u636e\u7c7b\u578b\uff0c\u5bf9text\/xml\u7684\u5185\u5bb9\u65e0\u6cd5\u89e3\u6790\u4e3a$_POST\u6570\u7ec4\uff0c\u56e0\u6b64\u4f1a\u4fdd\u7559\u539f\u578b\uff0c\u53ef\u4ee5\u4ea4\u7ed9file_get_contents(&lsquo;php:\/\/input&rsquo;)\u63a5\u6536\uff0c\u4e5f\u53ef\u4ee5\u7528$GLOBALS[&#8216;HTTP_RAW_POST_DATA&#8217;]\u3002\u540e\u8005\u5728\u9ad8\u7248\u672cphp\u4e2d\u88ab\u653e\u5f03\u3002\n<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;\n<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u5982\uff0c\u4f20\u8fc7\u6765\u7684xml\u4e3a\n<\/p>\n<div class=\"dp-highlighter bg_php\" style=\"font-family: Consolas, 'Courier New', Courier, mono, serif; border: 1px dashed rgb(153, 153, 153); font-size: 12px; width: 936.53125px; overflow: auto; padding-top: 1px; color: rgb(0, 0, 0); line-height: 26px; margin: 18px 0px !important; background-color: rgb(245, 245, 245);\">\n<ol class=\"dp-c\" start=\"1\" style=\"margin: 0px; padding: 5px 0px; border: none; position: relative; color: rgb(92, 92, 92);\">\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;xml&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;ToUserName&gt;&lt;![CDATA[ebyben1413005325]]&gt;&lt;\/ToUserName&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;FromUserName&gt;&lt;![CDATA[ga_6281708af4c6]]&gt;&lt;\/FromUserName&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;CreateTime&gt;1413341614&lt;\/CreateTime&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;MsgType&gt;&lt;![CDATA[text]]&gt;&lt;\/MsgType&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;Content&gt;&lt;![CDATA[\u9996\u9875]]&gt;&lt;\/Content&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&lt;MsgId&gt;1234567890123456&lt;\/MsgId&gt;&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<\/ol>\n<\/div>\n<p>\n\t<span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\u89e3\u6790\u8fc7\u540e\u4e3a<\/span>\n<\/p>\n<div class=\"dp-highlighter bg_php\" style=\"font-family: Consolas, 'Courier New', Courier, mono, serif; border: 1px dashed rgb(153, 153, 153); font-size: 12px; width: 936.53125px; overflow: auto; padding-top: 1px; color: rgb(0, 0, 0); line-height: 26px; margin: 18px 0px !important; background-color: rgb(245, 245, 245);\">\n<ol class=\"dp-c\" start=\"1\" style=\"margin: 0px; padding: 5px 0px; border: none; position: relative; color: rgb(92, 92, 92);\">\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">Array&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">(&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;[ToUserName]&nbsp;=&gt;&nbsp;ebyben1413005325&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;[FromUserName]&nbsp;=&gt;&nbsp;ga_6281708af4c6&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;[CreateTime]&nbsp;=&gt;&nbsp;1413341614&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;[MsgType]&nbsp;=&gt;&nbsp;text&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;[Content]&nbsp;=&gt;&nbsp;\u9996\u9875&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;[MsgId]&nbsp;=&gt;&nbsp;1234567890123456&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">)&nbsp;&nbsp;<\/span>\n\t\t<\/li>\n<\/ol>\n<\/div>\n<p>\n\tphp:\/\/input \u5141\u8bb8\u8bfb\u53d6 POST \u7684\u539f\u59cb\u6570\u636e\u3002\u548c$GLOBALS[&#8216;HTTP_RAW_POST_DATA&#8217;] \u6bd4\u8d77\u6765\uff0c\u5b83\u7ed9\u5185\u5b58\u5e26\u6765\u7684\u538b\u529b\u8f83\u5c0f\uff0c\u5e76\u4e14\u4e0d\u9700\u8981\u4efb\u4f55\u7279\u6b8a\u7684 php.ini \u8bbe\u7f6e\u3002\u540c\u65f6\u4e24\u8005\u7686\u4e0d\u80fd\u7528\u4e8e\u63a5\u6536enctype=&quot;multipart\/form-data&quot;\u5f62\u5f0f\u7684\u6570\u636e\u3002\n<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u6700\u540e\u518d\u8bf4\u4e0b$_SERVER[&#8216;REQUEST_METHOD&#8217;]\u8fd9\u4e2a\u53d8\u91cf\uff0c\u7528\u8fc7ThinkPHP\u7684\u670b\u53cb\u5e94\u8be5\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528\u7c7b\u4f3cIS_GET\u3001IS_AJAX\u8fd9\u79cd\u4ee3\u7801\u5427\uff0c\u8ffd\u6eaf\u4e0b\u6e90\u7801\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\n<\/p>\n<div class=\"dp-highlighter bg_php\" style=\"font-family: Consolas, 'Courier New', Courier, mono, serif; border: 1px dashed rgb(153, 153, 153); font-size: 12px; width: 936.53125px; overflow: auto; padding-top: 1px; color: rgb(0, 0, 0); line-height: 26px; margin: 18px 0px !important; background-color: rgb(245, 245, 245);\">\n<ol class=\"dp-c\" start=\"1\" style=\"margin: 0px; padding: 5px 0px; border: none; position: relative; color: rgb(92, 92, 92);\">\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\"><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">define(<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;REQUEST_METHOD&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$_SERVER<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">[<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;REQUEST_METHOD&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">]);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">define(<span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;IS_GET&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REQUEST_METHOD&nbsp;==<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;GET&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;?&nbsp;true&nbsp;:&nbsp;false);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">define(<span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;IS_POST&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REQUEST_METHOD&nbsp;==<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;POST&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;?&nbsp;true&nbsp;:&nbsp;false);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">define(<span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;IS_PUT&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REQUEST_METHOD&nbsp;==<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;PUT&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;?&nbsp;true&nbsp;:&nbsp;false);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li class=\"alt\" style=\"margin: 0px !important; padding: 0px 3px 0px 10px !important; border: none; list-style: decimal-leading-zero outside; color: inherit; line-height: 13.1999998092651px;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">define(<span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;IS_DELETE&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REQUEST_METHOD&nbsp;==<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;DELETE&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">&nbsp;?&nbsp;true&nbsp;:&nbsp;false);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<li style=\"border: none; list-style: decimal-leading-zero outside; line-height: 13.1999998092651px; margin: 0px !important; padding: 0px 3px 0px 10px !important;\">\n\t\t\t<span style=\"margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;\">define(<span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;IS_AJAX&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;((isset(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$_SERVER<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">[<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;HTTP_X_REQUESTED_WITH&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">])&nbsp;&amp;&amp;&nbsp;<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">strtolower<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$_SERVER<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">[<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;HTTP_X_REQUESTED_WITH&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">])&nbsp;==&nbsp;<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;xmlhttprequest&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">)&nbsp;||&nbsp;!<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">empty<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$_POST<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">[C(<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;VAR_AJAX_SUBMIT&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">)])&nbsp;||&nbsp;!<\/span><span class=\"func\" style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">empty<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">(<\/span><span class=\"vars\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(221, 0, 0); background-color: inherit;\">$_GET<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">[C(<\/span><span class=\"string\" style=\"margin: 0px; padding: 0px; border: none; color: rgb(0, 153, 0); background-color: inherit;\">&#39;VAR_AJAX_SUBMIT&#39;<\/span><span style=\"margin: 0px; padding: 0px; border: none; background-color: inherit;\">)]))&nbsp;?&nbsp;true&nbsp;:&nbsp;false);&nbsp;&nbsp;<\/span><\/span>\n\t\t<\/li>\n<\/ol>\n<\/div>\n<p>\n\t<span style=\"color: rgb(0, 0, 0); font-family: Arial; font-size: 14px; line-height: 26px;\">\u539f\u6765\u4ec5\u4ec5\u5c31\u7528\u4e86\u8fd9\u4e2a\u53d8\u91cf\uff0c\u5c31\u8fbe\u5230\u6548\u679c\u3002<\/span>\n<\/p>\n<p>\n\t<font color=\"#000000\" face=\"Arial\"><span style=\"font-size: 14px; line-height: 26px;\">\u6240\u4ee5\uff0c\u63a8\u8350\u4f7f\u7528POST, \u518d\u7528php:\/\/input, \u5c3d\u91cf\u4e0d\u8981\u7528HTTP_RAW_POST_DATA\u3002<\/span><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u5f00\u53d1\u5fae\u4fe1\u63a5\u53e3\uff0c\u73af\u5883\u662fphp5.6\uff0c\u4f46php5.6\u4e2d\uff0c This feature has been DEP\u2026 <span class=\"read-more\"><a href=\"https:\/\/web.jofar.cn\/?p=671\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-671","post","type-post","status-publish","format-standard","hentry","category-design-pursuit"],"_links":{"self":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=671"}],"version-history":[{"count":0,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=\/wp\/v2\/posts\/671\/revisions"}],"wp:attachment":[{"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.jofar.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}