作者:otion | 来源:互联网 | 2018-03-22 17:21
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');