admin 发表于 2020-9-6 22:57:57

destoon超时多长时间链接不上远程ftp,就保存本地。

超时多长时间链接不上远程ftp,就保存本地。


1.修改/upload.php


2. 找到

if($DT['ftp_remote'] && $DT['remote_url']) {
3. 在这上面增加:



//判断2秒是否能够连接上ftp
$timeout = @ftp_connect($DT['ftp_host'], $DT['ftp_port'],2);
if(!$timeout){
$DT['ftp_remote']=0;
}
//



页: [1]
查看完整版本: destoon超时多长时间链接不上远程ftp,就保存本地。