upyun图片fetch的简单封装-PHP源码
php代码:
writeFile($imgPath, $fh, True); // 上传图片,自动创建目录
return $imgPath;
//fclose($fh);
}
catch(Exception $e) {
echo $e->getCode();
echo $e->getMessage();
}
}
fetch('http://res.fuliqu.com/bbs/upload/forum/cj/2014/03/14/13947880739402.png');
/php/36889.htmlwww.phpzy.comtrue/php/36889.htmlTechArticleupyun图片fetch的简单封装-PHP源码 php代码: writeFile($imgPath, $fh, True); // 上传图片,自动创建目录return $imgPath; //fclose($fh); }catch(Exception $e) { echo $e->getCode(); echo $e->getMessage();}}fetch(http://res.f...
PHP之友评论