API16:JFTP/quit
From Joomla! Documentation
Description
Method to quit and close the connection
<! removed transcluded page call, red link never existed >
Syntax
quit()
Returns
boolean True if successful
Defined in
libraries/joomla/client/ftp.php
Importing
jimport( 'joomla.client.ftp' );
Source Body
function quit() {
// If native FTP support is enabled lets use it...
if (FTP_NATIVE) {
@ftp_close($this->_conn);
return true;
}
// Logout and close connection
@fwrite($this->_conn, "QUIT\r\n");
@fclose($this->_conn);
return true;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples