Support Joomla!

references:joomla.framework:client:jftp-quit

Table of Contents

quit

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

This method quits and closes the current connection. If the connection is successfully closed, it returns true, otherwise, it returns false.

Syntax

boolean quit ()

Examples

Example

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!
 
references/joomla.framework/client/jftp-quit.txt (463 views) · Last modified: 2007/08/15 15:13