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

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

WBOY
WBOYOriginal
2016-06-13 11:53:151187browse

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 />

------解决方案--------------------
我没看到,不好说

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