+ -
当前位置:首页 → 问答吧 → php抓取远程服务器图片

php抓取远程服务器图片

时间:2008-11-20

来源:互联网

开始想到用file_get_contents(),然后用fopen保存file_get_content取得的内容就OK了,下面是我实现的一个小程序.
<?php
$filed="http://111cn.cn/conference_php_quebec.gif";
$datad=file_get_contents($filed);
$mydr=basename($file);
fwrite(fopen($mydr,"wb+"),$data);
?>
www.111cn.cn/phper/php.html

作者: mailangel123   发布时间: 2008-11-20