API16

Difference between revisions of "JFTP/quit"

From Joomla! Documentation

< API16:JFTP
(New page: ===Description=== Method to quit and close the connection <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowik...)
(No difference)

Revision as of 17:39, 22 March 2010

The "API16" 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[edit]

Method to quit and close the connection

[Edit Descripton]

Template:Description:JFTP/quit

Syntax[edit]

quit()


Returns[edit]

boolean True if successful

Defined in[edit]

libraries/joomla/client/ftp.php

Importing[edit]

jimport( 'joomla.client.ftp' );

Source Body[edit]

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;
}

[Edit See Also] Template:SeeAlso:JFTP/quit

Examples[edit]

<CodeExamplesForm />