public FTPExtension::connect()
Connects to the server.
Overrides FileTransfer::connect
File
core/lib/Drupal/Core/FileTransfer/FTPExtension.php, line 13
Class
FTPExtension Defines a file transfer class using the PHP FTP extension.
Namespace
Drupal\Core\FileTransfer
Code
public function connect() {
$this->connection = ftp_connect($this->hostname, $this->port);
if (!$this->connection) {
throw new FileTransferException("Cannot connect to FTP Server, check settings");