public __construct ( array $config ) | ||
$config | array | FTP配置 |
public function __construct($config)
{
/* 默认FTP配置 */
$this->config = array_merge($this->config, $config);
/* 登录FTP服务器 */
if (!$this->login()) {
throw new Exception($this->error);
}
}