Use this script to update a website. It uses the SYNC command to synchronize the contents of the remote site from a local directory. This means that ScriptFTP will upload only the new or modified files.

# The host, user name and password are stored in variables.
# Change the text between the quotes with your own settings.
# Variables are also used to store the local and remote path
# of the website.
# Connect to the FTP server. Variables are used as OPENHOST parameters.
# Upload the new or modified files. Subdirectories are ignored.
# Close the connection