API15

JFTP/quit

< API15:JFTP

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Method to quit and close the connection

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement