会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
苟富贵,无相忘
人在江湖身不由已
博客园
首页
新随笔
联系
订阅
管理
2018年8月1日
thinkphp5保存远程图片到本地
摘要: 代码 file_put_contents()方法最好使用绝对路径,如果使用相对路径,在某些情况两个路径指向的目录可能不是同一个,从而会报错:failed to open stream: No such file or directory。 比如说thinkphp5使用workerman爬文章并保存图
阅读全文
posted @ 2018-08-01 10:55 苟富贵,无相忘
阅读(4633)
评论(0)
推荐(0)
编辑
公告