note 40042 deleted from function.ftp-close by vincent

From: Date: Thu, 19 Feb 2004 18:41:15 +0000
Subject: note 40042 deleted from function.ftp-close by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65417@lists.php.net to get a copy of this message
Note Submitter: ---- <?php ftp_exec($this->_connection,"QUIT"); ?> should be replaced by: <?php ftp_raw($this->_connection, "QUIT"); ?> because ftp_exec() will send "SITE QUIT" which has almost no effect on many servers. ftp_raw() will send the "QUIT" command without the often unsupported "SITE " command... So it may leave the connection open if "SITE QUIT" is not supported by the remote FTP server...

« previous php.notes (#65417) next »