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


(PHP 4 >= 4.2.0)

ftp_close -- Closes an FTP connection


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


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")) {
                } else {

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)

 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:
Last updated: Sat 01 Nov 2003 04:13:36 EST EST