PHP Class FtpClient\FtpWrapper

Author: Nicolas Tallefourtane ([email protected])
Show file Open project: nicolab/php-ftp-client Class Usage Examples

Protected Properties

Property Type Description
$conn resource The connection with the server

Public Methods

Method Description
__call ( string $function, array $arguments ) : mixed Forward the method call to FTP functions
__construct ( &$connection ) Constructor.
connect ( string $host, integer $port = 21, integer $timeout = 90 ) : resource Opens a FTP connection
ssl_connect ( string $host, integer $port = 21, integer $timeout = 90 ) : resource Opens a Secure SSL-FTP connection

Method Details

__call() public method

Forward the method call to FTP functions
public __call ( string $function, array $arguments ) : mixed
$function string
$arguments array
return mixed

__construct() public method

Constructor.
public __construct ( &$connection )

connect() public method

Opens a FTP connection
public connect ( string $host, integer $port = 21, integer $timeout = 90 ) : resource
$host string
$port integer
$timeout integer
return resource

ssl_connect() public method

Opens a Secure SSL-FTP connection
public ssl_connect ( string $host, integer $port = 21, integer $timeout = 90 ) : resource
$host string
$port integer
$timeout integer
return resource

Property Details

$conn protected property

The connection with the server
protected resource $conn
return resource