| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Client |
JFTP |
__construct |
__construct() |
Never | Work in Progress |
This is the class constructor. It sets up the transfer type and determines what OS the server is running.
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. |
Example
jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) );