Home > Backend Development > PHP Tutorial > web - 求将外部链接的图片直接上传至又拍云空间的方法(PHP)

web - 求将外部链接的图片直接上传至又拍云空间的方法(PHP)

WBOY
Release: 2016-06-06 20:44:47
Original
1546 people have browsed it

现在的情况是提示错误:stream does not support seeking。
说明fseek方法无法作用于将外部图片链接。

回复内容:

现在的情况是提示错误:stream does not support seeking。
说明fseek方法无法作用于将外部图片链接。

使用 php 标准 sdk 可以将 fopen 函数换成 file_get_contents 函数 即可传网络图片。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template