Home  >  Article  >  php教程  >  【推荐】防盗图片获取代码

【推荐】防盗图片获取代码

WBOY
WBOYOriginal
2016-06-07 11:37:091130browse

【推荐】防盗图片获取代码
 //----------------------------------------------------------<br>  //声明: 本代码并非完美,也许存在不佳之处,请放肆吐槽!<br>  //作者: 小曾<br>  //扣扣: 839024615<br>  //网址: www.yun8888.net<br>  //关于我的ThinkPHP http://www.thinkphp.cn/u/87696.html<br>  //----------------------------------------------------------<br> <br>     <br>     //取防盗图片<br>     //请不要直接访问,可能显示乱码 <img alt="【推荐】防盗图片获取代码" ><br>     public function img($url=''){<br>         $ch = curl_init();<br>         curl_setopt($ch, CURLOPT_URL, $url);<br>         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); <br>         curl_setopt($ch, CURLOPT_HEADER, 0);<br>         echo $out = curl_exec($ch);<br>     }

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn