====== getInstance ====== {#JAPI Joomla.Framework Client JFTP::getInstance #} 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 [[jftp-__construct|__construct]] for more information. | ===== Examples ===== $ftp = &JFTP::getInstance( '127.0.0.1' );