Home > Backend Development > PHP Tutorial > php ftp上传多个文件时失败,该怎么处理

php ftp上传多个文件时失败,该怎么处理

WBOY
Release: 2016-06-13 11:53:15
Original
1238 people have browsed it

php ftp上传多个文件时失败
遍历文件夹,打算批量上传到FTP上,li下有dirfiles两个数组,一个是目录数组,一个文件数组
用ftp上传时失败,单个上传没有问题??? 怎么解决啊

foreach ($li['files'] as $i){<br />	$c+=1;<br />	$ftp->upload($i,$i);<br />	if($c>= count($li['files'])/2)<br />	{set_time_limit(300);}<br />}<br />
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