PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<ftp_chmodftp_connect>
view the version of this page
Last updated: Thu, 21 Aug 2003

ftp_close

(PHP 4 >= 4.2.0)

ftp_close -- Closes an FTP connection

Description

void ftp_close ( resource ftp_stream)

ftp_close() closes ftp_stream and releases the resource. After calling this function, you can no longer use the FTP connection and must create a new one with ftp_connect().

See also ftp_connect()



add a note add a note User Contributed Notes
ftp_close
amn at ids dot org dot au
11-Dec-2002 02:56
No need for such a tricky solution such as that one, if you ftp_close is an undefined function, simply use

ftp_quit($conn_id);

Works a charm.
webmaster at datakolmio dot com
12-Sep-2002 12:28
ftp_quit() is an alias for ftp_close() and it should work with 4.1.2 too
tit petric @ telemach net
08-Jul-2002 03:14
function disconnect()
        {
                if (function_exists("ftp_close")) {
                        ftp_close($this->_connection);
                } else {
                        ftp_exec($this->_connection,"QUIT");
                }
        }

without ftp_exec there was no ftp_close and the session was left open on the server.. might be wrong to do this, but atleast my connection closed with this (proftpd)

<ftp_chmodftp_connect>
 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by: http://php.mirrors.ilisys.com.au/
Last updated: Sat 01 Nov 2003 04:13:36 EST EST