connect() публичный Метод

Open a FTP connection.
public connect ( string $host, boolean $ssl = false, integer $port = 21, integer $timeout = 90 ) : FTPClient
$host string
$ssl boolean
$port integer
$timeout integer
Результат FTPClient
Пример #1
0
 public function __construct($host, $user, $password, $environment)
 {
     $this->connection = new \FtpClient\FtpClient();
     $this->connection->connect($host);
     $this->connection->login($user, $password);
     $this->environment = $environment;
 }