sslConnect($config['ftp_host'], $config['ftp_port'], $config['ftp_time']); } else { $ftp->connect($config['ftp_host'], $config['ftp_port'], $config['ftp_time']); } $ftp->login($config['ftp_user'], $config['ftp_pass']); $ftp->pasv($config['ftp_pasv']); } catch (FtpException $e) { echo ' new $.zui.Messager("FTP 错误:' . $e->getMessage() . '",{ type: "primary", // 定义颜色主题 time:4000 }).show(); '; } }