Successfully uploaded to $fullremotefile\n"; } else { echo "There was a problem while uploading $fullname to $fullremotefile\n"; } } // close the connection ftp_close($conn_id); ?>