references:joomla.framework:client:jftp-quitquit
This method quits and closes the current connection. If the connection is successfully closed, it returns true, otherwise, it returns false. Syntaxboolean quit () ExamplesExample jimport( 'joomla.connector.ftp' ); $ftp = new JFTP( array( 'type' => FTP_BINARY ) ); $ftp->connect( '127.0.0.1' ); $ftp->login( 'testuser', 'testpass' ); if ($ftp->quit() ) { echo "Connection closed!"; } else { echo "Could not close connection!"; } might produce: Result Connection closed! |


