PHP Classes

File: docs/ConnectionInterface.md

Recommend this page to a friend!
  Classes of El Amrani Chakir   PHP FTP Client Library   docs/ConnectionInterface.md   Download  
File: docs/ConnectionInterface.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP FTP Client Library
Manage files in remote FTP server
Author: By
Last change:
Date: 2 years ago
Size: 771 bytes
 

Contents

Class file image Download

ConnectionInterface

FtpClient\Connection\ConnectionInterface interface provides an easy way to manipulate an FTP connection instance.

You can use the following classes that implement the interface.

* FtpConnection : Regular FTP connection (Not secure). * FtpSSLConnection : FTP over TLS/SSL connection (Secure).

Example :

// create an FTP connection instance
$connection = new FtpConnection('localhost', 'foo', '1234');

// open the FTP connection
$connection->open();

// close the connection
$connection->close();

// getters 
$connection->getStream();
$connection->getHost();
$connection->getPort();
$connection->getTimeout();
$connection->getUsername();
$connection->getPassword();
$connection->isConnected();
$connection->isPassive();