{"id":269021,"date":"2021-01-10T00:28:03","date_gmt":"2021-01-09T16:28:03","guid":{"rendered":"http:\/\/4563.org\/?p=269021"},"modified":"2021-01-10T00:28:03","modified_gmt":"2021-01-09T16:28:03","slug":"%e5%85%a8%e6%96%b0%e5%ae%98%e6%96%b9%e6%8e%a5%e5%8f%a3-php-%e6%a3%80%e6%b5%8b%e5%be%ae%e4%bf%a1%e5%9f%9f%e5%90%8d%e6%8b%a6%e6%88%aa%ef%bc%8c%e6%a3%80%e6%b5%8b%e5%be%ae%e4%bf%a1%e5%9f%9f%e5%90%8d","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=269021","title":{"rendered":"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pytth <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u4f60\u7684\u57df\u540d\u5728\u5fae\u4fe1\u88ab\u62e6\u622a\u7684 3 \u79cd\u5e38\u89c1\u60c5\u51b5<\/h1>\n<p> <\/p>\n<p>1 \u3001\u57df\u540d\u56e0\u8fdd\u89c4\u6216\u6709\u98ce\u9669\u88ab\u62e6\u622a\uff08\u7ea2\u8272\u62e6\u622a\uff09<br \/> 2 \u3001\u7c7b\u4f3c taobao.com \uff0cdouyin.com \u8fd9\u79cd\u7684\u6076\u610f\u7ade\u4e89\u5f0f\u62e6\u622a\uff0c\u6dd8\u5b9d\u3001\u6296\u97f3\u7b49\u5fae\u4fe1\u7684\u7ade\u4e89\u5bf9\u624b\u4e00\u822c\u90fd\u662f\u767d\u8272\u62e6\u622a\uff08\u767d\u8272\u62e6\u622a\uff09<br \/> 3 \u3001\u6709\u4e00\u4e2a\u4e2d\u95f4\u9875\u7684\u62e6\u622a\uff0c\u9700\u8981\u591a\u6b21\u70b9\u51fb\u6309\u94ae\u624d\u53ef\u4ee5\u8df3\u8f6c\u5230\u4f60\u7684\u57df\u540d\u7684\uff0c\u591a\u662f\u4e00\u4e9b\u65b0\u578b\u57df\u540d\u540e\u7f00\uff0c\u4f8b\u5982.top .xyz .link \u540e\u7f00\uff0c\u8fd9\u79cd\u60c5\u51b5\uff0c\u5907\u6848\u540e\u53ef\u4ee5\u89e3\u51b3\uff08\u5907\u6848\u62e6\u622a\uff09<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210110_5ffac8ac8caa2.jpg\" alt=\"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01\" \/><\/p>\n<p>\u901a\u8fc7 php get_headers()\u51fd\u6570\u5c31\u53ef\u4ee5\u5206\u6790\u5230\u7ed3\u679c<br \/> \u8fd9\u4e2a\u4e0b\u6807\u4e3a 6 \u662f\u4e00\u4e2a URL\uff0c\u5728\u5fae\u4fe1\u8bbf\u95ee\u540e\u6b63\u662f\u8fd9\u4e2a\u8ba8\u538c\u7684\u9875\u9762\uff01<\/p>\n<p> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210110_5ffac8afced04.jpg\" alt=\"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01\" \/> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210110_5ffac8b43c619.jpg\" alt=\"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01\" \/> <\/p>\n<p>\u5982\u679c\u5207\u6362\u4e3a\u6b63\u5e38\u7684\u94fe\u63a5\u7684\u8bdd\uff0c\u8fd4\u56de\u7684 headers \u662f\u8fd9\u6837\u7684<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210110_5ffac8b98576a.jpg\" alt=\"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01\" \/><\/p>\n<p>\u4e4b\u524d\u53d1\u8fc7\u4e00\u6b21\uff0c\u4f46\u662f\u4e4b\u524d\u7684\u5df2\u7ecf\u4e0d\u80fd\u7528\u4e86<br \/> \u73b0\u5728\u53c8\u91cd\u65b0\u6293\u5305\uff0c\u7ec8\u4e8e\u53d1\u73b0\u4e86\uff0c\u539f\u6765\u4e4b\u524d\u7684\u63a5\u53e3<br \/> \u4fee\u6539\u4e86\u6570\u636e\u8fd4\u56de\u7684\u4f4d\u7f6e\uff0c\u4e4b\u524d\u662f\u8fd4\u56de\u4e0b\u6807\u4e3a[1]\u7684<br \/> \u73b0\u5728\u8fd4\u56de\u7684\u4f4d\u7f6e\u4e0b\u6807\u662f[6]\u65e2\u7136\u8fd9\u6837<br \/> \u90a3\u4e48\u4ee3\u7801\u5c31\u597d\u5199\u4e86~\u4e0b\u9762\u662f\u4ee3\u7801\uff0c\u518d\u4e5f\u4e0d\u7528\u7f51\u4e0a\u6536\u8d39\u7684 api \u4e86<\/p>\n<p> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210110_5ffac8be8fde3.jpg\" alt=\"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01\" \/> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210110_5ffac8c316e1d.jpg\" alt=\"[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u62e6\u622a\uff0c\u68c0\u6d4b\u5fae\u4fe1\u57df\u540d\u88ab\u5c01\" \/> <\/p>\n<h1>Api \u8c03\u7528\u6e90\u7801<\/h1>\n<p> <\/p>\n<pre><code>&lt;?php \/\/ \u8fd4\u56de JSON header('Content-type: application\/json;charset=utf-8');   \/\/ \u5b98\u65b9 API \u63a5\u53e3 $api = get_headers('http:\/\/mp.weixinbridge.com\/mp\/wapredirect?url='.$_GET['url']); \/\/ \u68c0\u6d4b url \u7684\u5408\u6cd5\u6027 $checkUrl = \"\/http[s]?:\/\/[w.]+[w\/]*[w.]*??[w=&amp;+%]*\/is\";  \/\/ \u8fc7\u6ee4 URL switch($_GET['url']) {     case (preg_match($checkUrl,$_GET['url'])):     $result = array(         'code' =&gt; 201,         'msg' =&gt; '\u4f60\u4f20\u5165\u7684 URL \u4e0d\u5408\u6cd5'      );     break;      case ($api[6] !== 'Location: '.$_GET['url'].''):     $result = array(         'code' =&gt; 202,         'msg' =&gt; '\u57df\u540d\u88ab\u62e6\u622a'      );     break;      case ($api[6] == 'Location: '.$_GET['url'].''):     $result = array(         'code' =&gt; 200,         'msg' =&gt; '\u57df\u540d\u6b63\u5e38'      );     break; }   \/\/ \u8f93\u51fa JSON echo json_encode($result,JSON_UNESCAPED_UNICODE); ?&gt; <\/code><\/pre>\n<h1>\u5982\u4f55\u4f7f\u7528\uff1f<\/h1>\n<p> <\/p>\n<p>1 \u3001\u65b0\u5efa wxcheck.php \u6587\u4ef6<br \/> 2 \u3001\u62f7\u8d1d\u4e0a\u9762\u4ee3\u7801<br \/> 3 \u3001\u90e8\u7f72\u5230\u670d\u52a1\u5668\u5373\u53ef<br \/> 4 \u3001\u53d1\u8d77 Get \u8bf7\u6c42\uff0cURL \u683c\u5f0f\u5982\u4e0b<\/p>\n<pre><code>http:\/\/\u57df\u540d \/\u76ee\u5f55 \/wxcheck.php?url=\u4f60\u8981\u68c0\u6d4b\u7684\u57df\u540d <\/code><\/pre>\n<h1>\u6210\u54c1<\/h1>\n<p> <\/p>\n<p>https:\/\/github.com\/likeyun\/WxCheck<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4799661\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aijialefu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8001\u5927\uff0c\u4f60\u662f\u7528\u624b\u673a\u8bbf\u95ee\uff0c\u7136\u540e\u6293\u7684\u5305\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799662\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : pytth <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @aijialefu \u7528\u6d4f\u89c8\u5668                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799663\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aijialefu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @pytth \u8001\u5927 \u6211\u662f\u5c0f\u83dc\uff0c\u8de8\u5e74\u591c\u7814\u7a76\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u80fd\u590d\u73b0\u4f60\u7684\u8fc7\u7a0b\uff0c\u975e\u5e38\u4e0d\u9519\u54e6\uff01\u611f\u8c22&#8230;\u4e4b\u524d\u7814\u7a76\u8fc7\u4e00\u6b21\uff0c\u8d70\u4e86\u4e0d\u5c11\u5f2f\u8def\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799664\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mitt <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5907\u6848\u62e6\u622a\u90a3\u4e2a\uff0c\u5176\u5b9e\u662f\u56e0\u4e3a http\uff0c\u5982\u679c\u662f https \u5c31\u4e0d\u62e6\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799665\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hao888 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c22\u8c22\u8001\u54e5\uff0c\u9a6c\u4e0a\u90e8\u7f72\u4f7f\u7528\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799666\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : pytth <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Mitt \u8fd9\u6837\u5417\uff1f\u6211\u53bb\u8bd5\u8bd5\u5148                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799667\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kinnice <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u63a5\u68c0\u6d4b\u8fd4\u56de\u7684 Location\uff0c\u4e0d\u5fc5\u8981\u4e00\u76f4\u7ea0\u7ed3\u4e8e\u4e0b\u6807\uff0c\u4e0b\u6807\u53ef\u80fd\u4f1a\u7ecf\u5e38\u6539\u53d8\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4799668\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : unicloud <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5389\u5bb3\u54e6\uff01 666                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[\u5168\u65b0\u5b98\u65b9\u63a5\u53e3] PHP \u68c0\u6d4b\u5fae\u4fe1&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\/269021"}],"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=269021"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/269021\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269021"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}