Home > Backend Development > PHP Tutorial > php curl传输图片

php curl传输图片

WBOY
Release: 2016-06-20 12:49:05
Original
1212 people have browsed it

今天项目中,运用到了通过curl传输图片,留下做笔记

foreach ($files as $key => $file) {    $post[$key] = '@'.realpath($file['tmp_name']).";type=".$file['type'].";filename=".$file['name'];}
Copy after login


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