Support Joomla!

references:joomla.framework:client:jftp-getinstance

Table of Contents

getInstance

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

Returns a reference to the global FTP connector object, only creating it if it doesn’t already exist. This method must be invoked as:

  $ftp = &JFTP::getInstance($host);

Syntax

JFTP &getInstance ( $host, $port, $options )

$host string is a string containing the host to connect to. This parameter is optional and if omitted defaults to ‘127.0.0.1’.
$port string is a string containing the post to connect to. This parameter is optional and if omitted defaults to ‘21’.
$options array is an associative array to use to create the object. See __construct for more information.

Examples

Example

$ftp = &JFTP::getInstance( '127.0.0.1' );
 
references/joomla.framework/client/jftp-getinstance.txt (446 views) · Last modified: 2007/08/15 15:13