Table of Contents

__construct

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Client Class JFTP Method __construct Reference __construct() Never Work in Progress

This is the class constructor. It sets up the transfer type and determines what OS the server is running.

Syntax

JFTP __construct ( $options )

$options array is an associative array of options for configuring the FTP client. The only recognized option is ‘type’, which can be one of three constants: FTP_AUTOASCII, FTP_BINARY or FTP_ASCII.

Examples

Example

jimport( 'joomla.connector.ftp' );

$ftp = new JFTP( array( 'type' => FTP_BINARY ) );