| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Client |
JFTP |
quit |
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.
boolean quit ()
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!