今天项目中,运用到了通过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