{"id":172408,"date":"2020-10-25T01:24:30","date_gmt":"2020-10-24T17:24:30","guid":{"rendered":"http:\/\/4563.org\/?p=172408"},"modified":"2020-10-25T01:24:30","modified_gmt":"2020-10-24T17:24:30","slug":"php-%e6%80%8e%e4%b9%88%e6%8a%8a%e7%bd%91%e9%a1%b5%e5%86%85%e5%ae%b9%e7%94%9f%e6%88%90%e5%9b%be%e7%89%87%e6%88%91%e6%83%b3%e6%8a%8a%e7%94%a8%e6%88%b7%e8%ae%bf%e9%97%ae%e7%89%b9%e5%ae%9a%e9%a1%b5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=172408","title":{"rendered":"PHP \u600e\u4e48\u628a\u7f51\u9875\u5185\u5bb9\u751f\u6210\u56fe\u7247?\u6211\u60f3\u628a\u7528\u6237\u8bbf\u95ee\u7279\u5b9a\u9875\u9762\u65f6\u7684\u7f51\u9875\u505a\u4e2a\u7c7b\u4f3c\u5feb\u7167\u4e00\u6837\u7684\u4e1c\u897f\uff0c\u628a\u6b64\u65f6\u7684\u7f51\u9875\u663e\u793a\u5185\u5bb9\u751f\u6210\u4e00\u4e2a\u56fe\u7247 jpg,png,gif \u4e0d\u9650\uff0c\u4fdd\u5b58\u8d77\u6765\u3002\u8bf7\u95ee\u6709\u8fd9\u65b9\u9762\u7684 PHP \u7a0b\u5e8f\u6216\u63d2\u4ef6\u5417\uff1f\u6216\u8005\u6709\u4ec0\u4e48\u601d\u8def\u53bb\u5b9e\u73b0\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  PHP \u600e\u4e48\u628a\u7f51\u9875\u5185\u5bb9\u751f\u6210\u56fe\u7247?\u6211\u60f3\u628a\u7528\u6237\u8bbf\u95ee\u7279\u5b9a\u9875\u9762\u65f6\u7684\u7f51\u9875\u505a\u4e2a\u7c7b\u4f3c\u5feb\u7167\u4e00\u6837\u7684\u4e1c\u897f\uff0c\u628a\u6b64\u65f6\u7684\u7f51\u9875\u663e\u793a\u5185\u5bb9\u751f\u6210\u4e00\u4e2a\u56fe\u7247 jpg,png,gif \u4e0d\u9650\uff0c\u4fdd\u5b58\u8d77\u6765\u3002\u8bf7\u95ee\u6709\u8fd9\u65b9\u9762\u7684 PHP \u7a0b\u5e8f\u6216\u63d2\u4ef6\u5417\uff1f\u6216\u8005\u6709\u4ec0\u4e48\u601d\u8def\u53bb\u5b9e\u73b0\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frozenway <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        PhantomJS      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3876826\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hadeswang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5ba2\u6237\u7aef\u5b9e\u73b0\uff1f<br \/> -&gt; \u81ea\u5df1\u63a7\u5236\u8303\u56f4\u5185\u7684\u7f51\u9875\uff1a\u9664\u975e\u5728\u5ba2\u6237\u7aef\u5b89\u88c5\u63d2\u4ef6\uff0c\u5426\u5219\u6211\u80fd\u60f3\u5230\u7684\u5c31\u662f `javascript:window.print();`<br \/> -&gt; \u4e0d\u5728\u81ea\u5df1\u63a7\u5236\u8303\u56f4\u5185\u7684\u7f51\u9875\uff1a\u9664\u975e\u5728\u5ba2\u6237\u7aef\u5b89\u88c5\u63d2\u4ef6\uff0c\u5426\u5219\u7406\u8bba\u4e0a\u65e0\u6cd5\u5b9e\u73b0\u3002<\/p>\n<p>\u670d\u52a1\u7aef\u5b9e\u73b0\uff1f<br \/> -&gt; \u6709\u4e00\u4e2a\u5de5\u5177\u201cPuppeteer\u201d\uff1f\u4e4b\u7c7b\u7684\u65e0\u5934\u6d4f\u89c8\u5668\uff0c\u53ef\u4ee5\u5b9e\u73b0\u670d\u52a1\u7aef\u622a\u56fe\uff0c\u4f46\u662f\u56e0\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u7b49\u5dee\u5f02\uff0c\u4e0e\u5ba2\u6237\u7aef\u770b\u5230\u7684\u53ef\u80fd\u4e0d\u5b8c\u5168\u4e00\u6837\u3002<\/p>\n<p>\u7efc\u4e0a\uff0c\u548c PHP \u5b9e\u73b0\u672c\u8eab\u6ca1\u591a\u5927\u5173\u7cfb\uff0c\u6216\u8005\u8bf4\u5355\u9760 PHP \u672c\u8eab\u65e0\u6cd5\u5b9e\u73b0\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876827\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imdong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u4e0d\u662f,\u7c7b\u4f3c,\u70b9\u51fb\u4e00\u4e0b,\u5c06\u9875\u9762\u751f\u6210\u4e00\u5f20\u56fe\u7247?,\u5e76\u4fdd\u5b58\u8d77\u6765?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876828\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Evilk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u4f7f\u7528 domtoimage \u5c06 dom \u5143\u7d20\u8f6c\u6362\u6210\u56fe\u7247<br \/>github\uff1a https:\/\/github.com\/tsayen\/dom-to-image                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876829\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wispx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @imdong \u662f\u5728\u670d\u52a1\u7aef\u5b9e\u73b0\uff0c\u5728\u7f51\u9875\u89c6\u56fe\u4f20\u9001\u5230\u6d4f\u89c8\u5668\u524d<br \/>@Evilk \u4e0d\u662f\u70b9\u51fb\uff0c\u662f\u53ea\u8981\u5ba2\u6237\u70b9\u51fb\u4e86\u8bbf\u95ee\u4e86\u94fe\u63a5\uff0c\u7a0b\u5e8f\u81ea\u52a8\u628a\u8bbf\u95ee\u7684\u8fd9\u6761\u8fde\u63a5\u7684\u7f51\u9875\u5185\u5bb9\u751f\u4ea7\u4e00\u4e2a\u56fe\u7247\u4fdd\u5b58\u8d77\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876830\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : frozenway <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e0b Dompdf \uff0c\u628a html \u5b58\u6210 pdf .                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876831\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : KasonPasser <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @frozenway \u901a\u8fc7\u70b9\u51fb\u89e6\u53d1,\u6216\u8005,\u8bbf\u95ee\u89e6\u53d1,\u90fd\u4e00\u6837,\u4f60\u53ef\u80fd\u9700\u8981\u8fd9\u4e2a( http:\/\/html2canvas.hertzen.com)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876832\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Evilk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Evilk \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876833\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : frozenway <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u53c2\u8003<\/p>\n<p>https:\/\/github.com\/puppeteer\/puppeteer<\/p>\n<p>https:\/\/github.com\/rialto-php\/puphpeteer<\/p>\n<p>use NeskPuphpeteerPuppeteer;<\/p>\n<p>$puppeteer = new Puppeteer;<br \/>$browser = $puppeteer-&gt;launch();<\/p>\n<p>$page = $browser-&gt;newPage();<br \/>$page-&gt;goto(&#8216;https:\/\/example.com&#8217;);<br \/>$page-&gt;screenshot([&#8216;path&#8217; =&gt; &#8216;example.png&#8217;]);<\/p>\n<p>$browser-&gt;close();                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876834\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wh1012023498 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u5565\u4e0d\u901a\u8fc7\u524d\u7aef\u6765\u5b8c\u6210\u5462\uff1f\u8c03\u7528\u6d4f\u89c8\u5668 api \u622a\u56fe\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u4e5f\u53ef\u4ee5\u505a\u5230\u7528\u6237\u65e0\u611f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876835\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : z5864703 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wh1012023498 \u592a\u611f\u8c22\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3876836\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : frozenway <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e94\u8be5\u662f\u9700\u8981\u4e00\u4e2a\u6a21\u62df\u6d4f\u89c8\u5668\u53bb\u6e32\u67d3\uff0c\u8fd9\u4e2a\u8ddf php \u5173\u7cfb\u4e0d\u5927\uff0c\u662f php \u901a\u8fc7\u547d\u4ee4\u53bb\u8c03\u7528\u6e32\u67d3\u7684\u63d2\u4ef6\uff0c\u8fd9\u79cd windows \u548c linux \u5e94\u8be5\u90fd\u6709\uff0c\u6211\u4e4b\u524d\u770b\u5230\u8fc7\uff0c\u56e0\u4e3a\u6ca1\u505a\u8fd9\u79cd\u529f\u80fd\uff0c\u7ec6\u8282\u5fd8\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u600e\u4e48\u628a\u7f51\u9875\u5185\u5bb9\u751f\u6210\u56fe\u7247?\u6211&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\/172408"}],"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=172408"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/172408\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=172408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=172408"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=172408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}