mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
indentation fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293657 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
8ade4d42b5
commit
68842ac538
1 changed files with 10 additions and 10 deletions
|
@ -18,22 +18,22 @@ $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 $ftp_user_name";
|
||||
exit;
|
||||
} else {
|
||||
echo "Connected to $ftp_server, for user $ftp_user_name";
|
||||
}
|
||||
echo "FTP connection has failed!";
|
||||
echo "Attempted to connect to $ftp_server for user $ftp_user_name";
|
||||
exit;
|
||||
} else {
|
||||
echo "Connected to $ftp_server, for user $ftp_user_name";
|
||||
}
|
||||
|
||||
// upload the file
|
||||
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
|
||||
|
||||
// check upload status
|
||||
if (!$upload) {
|
||||
echo "FTP upload has failed!";
|
||||
} else {
|
||||
echo "Uploaded $source_file to $ftp_server as $destination_file";
|
||||
}
|
||||
echo "FTP upload has failed!";
|
||||
} else {
|
||||
echo "Uploaded $source_file to $ftp_server as $destination_file";
|
||||
}
|
||||
|
||||
// close the FTP stream
|
||||
ftp_close($conn_id);
|
||||
|
|
Loading…
Reference in a new issue