note 23035 deleted from function.ftp-close by vincent
| From: | vincent@php.net | Date: | Thu, 19 Feb 2004 18:42:38 +0000 |
| Subject: | note 23035 deleted from function.ftp-close by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65420@lists.php.net to get a copy of this message | ||
Note Submitter: tit petric @ telemach net
----
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)