【发布时间】:2015-08-28 02:54:40
【问题描述】:
我收到以下错误消息:
警告: ftp_login():我在第 58 行的 C:\xampp\htdocs\test\ftp_sync.php 中不能以同一用户接受超过 6 个连接
导致错误的代码:
function newStream($i){
$conId = ftp_connect($this->ftpServer);
// login with username and password
$login_result = ftp_login($conId, $this->ftpUsername, $this->ftpPassword);//line 58
// /home/content/61/10367861/html/
// turn passive mode on
ftp_pasv($conId, true);
$this->conIds[$i]=$conId;
$this->localFiles[$i]='';
$this->conStats[$i]=FTP_FAILED;//initial value
}
有没有人知道这个错误信息是什么意思?
【问题讨论】:
-
确保在完成后关闭连接:
ftp_close($conId);
标签: php server ftp ftp-client