note 40042 added to function.ftp-close
| From: | php-general at lists dot php dot net | Date: | Thu, 19 Feb 2004 18:16:43 +0000 |
| Subject: | note 40042 added to function.ftp-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65415@lists.php.net to get a copy of this message | ||
<?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...
----
Manual Page -- http://www.php.net/manual/en/function.ftp-close.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40042
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40042&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40042&report=yes
Search -- http://master.php.net/manage/user-notes.php