Closing bug 13124, and another one in ftp_quit

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@56786 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gabor Hojtsy 2001-09-04 14:49:38 +00:00
parent 19fc0382c8
commit 72f1de697f

View file

@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
<!-- $Revision: 1.19 $ -->
<!-- $Revision: 1.20 $ -->
<reference id="ref.ftp">
<title>FTP functions</title>
<titleabbrev>FTP</titleabbrev>
@ -36,10 +36,10 @@ $login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass");
// check connection
if ((!$conn_id) || (!$login_result)) {
echo "Ftp connection has failed!";
echo "Attempted to connect to $ftp_server for user $user";
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
die;
} else {
echo "Connected to $ftp_server, for user $user";
echo "Connected to $ftp_server, for user $ftp_user_name";
}
// upload the file
@ -557,7 +557,7 @@ $upload = ftp_put ($conn_id, "$destination_file", "$source_file", FTP_ASCII);
</funcprototype>
</funcsynopsis>
<para>
<function>ftp_connect</function> closes <parameter>ftp_stream</parameter>.
<function>ftp_quit</function> closes <parameter>ftp_stream</parameter>.
</para>
</refsect1>
</refentry>