From 72f1de697f4bf499464648e6d3c3628b48caa5de Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Tue, 4 Sep 2001 14:49:38 +0000 Subject: [PATCH] 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 --- functions/ftp.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/ftp.xml b/functions/ftp.xml index 048f0a7138..0ccc1bd2eb 100644 --- a/functions/ftp.xml +++ b/functions/ftp.xml @@ -1,5 +1,5 @@ - + FTP functions FTP @@ -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); - ftp_connect closes ftp_stream. + ftp_quit closes ftp_stream.