references:joomla.framework:client:jftp-connectconnect
This method makes the connection to the FTP server. Syntaxboolean connect ( $host, $port )
ExamplesExample jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); if ($ftp->connect( 'ftp.ftpserver.com' )) { echo "Connection successful!"; } else { echo "Connection failed!"; } might produce: Result Connection successful! |


