{"id":220257,"date":"2020-12-08T18:09:57","date_gmt":"2020-12-08T10:09:57","guid":{"rendered":"http:\/\/4563.org\/?p=220257"},"modified":"2020-12-08T18:09:57","modified_gmt":"2020-12-08T10:09:57","slug":"php%e5%a4%a7%e4%bd%ac%e8%af%b7%e8%bf%9b%ef%bc%8c%e9%97%ae%e4%b8%80%e4%b8%aa%e6%b2%99b%e9%97%ae%e9%a2%98-%e8%a7%a3%e5%86%b3%e4%ba%86%ef%bc%8c%e6%88%91%e6%98%af%e6%b2%99b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=220257","title":{"rendered":"php\u5927\u4f6c\u8bf7\u8fdb\uff0c\u95ee\u4e00\u4e2a\u6c99b\u95ee\u9898( \u89e3\u51b3\u4e86\uff0c\u6211\u662f\u6c99B"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>lemeaco<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>php\u5927\u4f6c\u8bf7\u8fdb\uff0c\u95ee\u4e00\u4e2a\u6c99b\u95ee\u9898( \u89e3\u51b3\u4e86\uff0c\u6211\u662f\u6c99B<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 lemeaco \u4e8e 2020-12-8 18:13 \u7f16\u8f91 <\/p>\n<p> https:\/\/s3.ax1x.com\/2020\/12\/08\/rpeRTx.png<br \/>  https:\/\/s3.ax1x.com\/2020\/12\/08\/rpe201.png<br \/>  url_list\u662f\u4e00\u4e2a\u5305\u542b\u4e0b\u8fb9\u51e0\u4e2a\u6570\u7ec4\u7684\u7f51\u5740\uff1ahttps:\/\/netease-cloud-deepsea.glitch.me\/<br \/>  http:\/\/api-gearhost.rnm.plus\/<br \/>  https:\/\/netease-cloud.herokuapp.com\/<br \/>  \u7136\u540eforeach\u6328\u4e2a\u53bb\u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u53ea\u6709\u6700\u540e\u4e00\u4e2a\u7684\u72b6\u6001\u7801\u662f200\uff0c\u5176\u4ed6\u7684\u5168\u662f404\uff0c\u6362\u4e2a\u987a\u5e8f\u8fd8\u662f\u8fd9\u6837\uff0c\u8fd9\u662f\u548b\u56de\u4e8b<\/p>\n<p>  \u89e3\u51b3\u4e86\uff0c\u6211\u662f\u6c99B \uff0c\u5b57\u7b26\u4e32\u91cc\u6709\u7a7a\u683chttps:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kieng<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 kieng \u4e8e 2020-12-8 17:51 \u7f16\u8f91 <\/p>\n<p> \u5efa\u8bae\u7528PHP\u7684curl,\u522b\u7528file_get_contents\u8fd9\u4e2a\u51fd\u6570.<\/p>\n<p>  function _curl($url, $post = false, $cookie = false, $timeout = 60) {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $ch = curl_init();<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_URL, $url);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if ($cookie) {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_COOKIE, $cookie);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; if ($post) {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_POST, 1);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_POSTFIELDS, $post);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); \/\/ \u6700\u5927\u6267\u884c\u65f6\u95f4<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_exec($ch);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; curl_close($ch);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; return $httpCode;<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lemeaco<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkieng \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-12-8 17:48<br \/>  \u5efa\u8bae\u7528PHP\u7684curl,\u522b\u7528file_get_contents\u8fd9\u4e2a\u51fd\u6570.<\/p>\n<p> \u8fd9\u6837\u4e5f\u662f\u53ea\u6709\u6700\u540e\u4e00\u4e2a\u7684\u72b6\u6001\u7801\u662f200\uff0c\u5176\u4ed6\u7684\u90fd\u662f0https:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>teardrops<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u8981\u7528 foreach<\/p>\n<p>  \u4f60\u8bd5\u8bd5\u5355\u4e2a\u8bf7\u6c42. \u5f97\u5230response \u540e \u518d\u8bf7\u6c42\u4e0b\u4e00\u4e2a..<\/p>\n<p>  &nbsp; &nbsp;php\u8c8c\u4f3c\u6ca1\u6709\u5e76\u53d1.. (\u60f3\u5e76\u53d1\u53ef\u4ee5\u8003\u8651python \u6216 go)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lanying<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u7f51\u7ad9\u7c7b\u578b\u4e0d\u540c, https http\u7684\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>lemeaco \u5927\u4f6c\u6709\u8bdd\u8bf4 : p&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/220257"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220257"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/220257\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220257"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}