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

php curl传输图片

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-20 12:49:051272browse

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

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


Statement:
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
Previous article:安装zabbix安装phpNext article:php自动加载实现