FTP stands for "file transfer protocol" and it used for transfering files from one computer to another over the Internet. It is how you will upload the files which comprise your webiste to our servers. FTP is also sometimes used for distribution of files, but this is usually called anonymous FTP. You are not using anonymous FTP because you are providing a username and a password to gain upload access to your webiste. With anonymous FTP, a username and password are not given as it is used for access to public resources (such as download libraries). How to connect with FTP To connect to your webiste with FTP, first you need a FTP client. We recomend that you use a GUI based program such as AbsoluteFTP, CuteFTP, or WU-FTP. For more information on obtaining a FTP client, please see the section below on that. To connect with FTP you need to provide your FTP client with some basic information about your account.
Once you enter the proper information into your client program and ask to connect, you should be connected. If you are not, please see the troubleshooting section. Once connected, you will be shows a listing of your home directory. Below is a screenshot of an example login to a server from AbsoluteFTP. (Note that this screenshot just shows one login, and not the whole AbsoluteFTP application at that time.)
You will notice that the right pane displays the files in the home directory and the left pane displays the directory structure.
From the right pane you can see that the current
directory is "home" which is inside of "drhweb" which is inside of "r", which is inside
of "d", which is inside of "web" which is in the root directory. The current directory of
this session (which is the home directory of the account) is
Note that you can actually browse directories farther up in the tree than your own, but you will not find much useful. It's just worth pointing out that your home directory is inside of a larger tree of directories so that you don't get lost. Once you are connected, you can ask your FTP client to transfer files and directories from your local machine to your website and vice-versa. This is usually done by dragging the file from one window representing your local hard drive, to another window representing your webspace that you have connected though with FTP. However, you should consult the documentation on your specific FTP client program to understand how to transfer files. Before you upload your webiste, it is very important that you understand how to upload your files in the proper format. See the next section for information on this. Transfering files in ASCII and BINARY mode This section describes an interesting quirk of FTP that is important to understand. When you upload a file you are transfering it from your local system to a UNIX server. If your local machine is running either Windows or Mackintosh, then your system uses a different method of encoding the end of a line in a text document than the UNIX server. A UNIX text file in a DOS enviornment is one big long line, and a DOS text file in a UNIX enviornment has an extra character appended to each line. Becuase of this difference in formats, text files must be converted when transfered from one machine to another using FTP. However, is it very important that files which are not text files, but binary in nature such as image files, not be convereted. They contain binary information that will become corrupted if FTP tries to find the end-of-line encodings and change them. FTP has two formats for transfering files: ASCII (for text files) and BINARY (for binary files such as images). It is important that each file be transfered in the appropriate format. Most modern GUI FTP client programs will attempt to automatically detect the format of the file by the extension. However, sometimes you have to manually override. See your client specific documentation on how your client software deals with ASCII and BINARY modes. Just make sure that text files are transfered in ASCII mode and binary files transfered in BINARY mode. Also, beware of files like word documents. Although the file is mainly storing a text document, the format of of the file produced by word is binary. Any other word processor will produce a binary output file. Recomended FTP client programs To FTP files into a site you need a FTP client program. A really crummy program comes with windows that is command line based, but we don't recomend you try to use that. Go for a GUI FTP program -- and get a good one becuase you are going to be using it a lot. Here are some windows programs:
Unable to login
|
||||||