*Uploading...
After finishing your website designing, you have to place it on the server
in the booked space.
This process of uploading can be handled by File Transfer Protocol
(FTP) on DOS prompt, here you can find some commands:-
ftp [-v] [-n] [-I] [-d]
[-g] [host] [-s: filename]
| [-v] |
Suppresses the display of the remote server's response. |
|
| [-n] |
Turns off autologon on initial connection |
|
| [-I] |
Turns off interactive prompting during multiple-file transfers |
|
| [-d] |
Enables debugging display all FTP commands password between the client and
the server |
|
| [-g] |
Disables filename" globbing" which permits the use of wildcard
character in local file and pathnames. |
|
| [ host ] |
specifies the host name or IP address of the remote host to which you want
to connect. |
|
| [-s: filename] |
specifies a text file containing FTP commands that will run automatically
after the ftp utility starts. You can use this to switch to automate your FTP sessions. |
|
For example the following command starts ftp utility and
initiates a connection to ThinkQuest's site:-
ftp ftp://dev99.advanced.org
Then you will be asked for the user name and password in most of cases,
but this doesn't mean you are out of luck!, many FTP servers are anonymous FTP sites,
which means they offer public access to their files , so you don't need user name or
password. A typical FTP sessions progresses in the following way:-
- Start FTP and connect to the host computer.
- Change into the directory you want to work with.
- Set some files transfer options.
- Download (or upload) the file(s).
- End the FTP session.
We have a summary here for the ftp commands, you will use most often
during each step.
Command |
Description |
Working with
Directories |
| cd remote_directory |
Changes the directory of the remote computer to remote_directory. |
| cd . . or cdup |
Changes the directory of the remote computer to the parent of the
current directory. |
| lcd local_directory |
Changes the directory of the local computer to local_directory. |
| ls |
Displays a short listing of the files in the current remote directory. |
| dir |
Displays a long listing of the files in the current remote
directory. |
| mkdir new directory |
Creates the directory new_directory on the remote computer. |
| pwd |
Prints (displays) the name of the current working directory on the remote
computer. |
| rmdir remote directory |
Removes the remote directory from the remote computer. |
| Setting File
Transfer Options |
| ASCII |
Sets FTP to ASCII mode for transferring text files. |
| bell |
Toggles the bell settings on and off. When it's on, ftp beeps your
computer speaker after each file transferred |
| binary |
Sets the FTP to the binary mode for transferring binary files. |
| hash |
Toggles display of # symbols for each data block transferred. |
| prompt |
Toggles confirmation prompt for multiple-file transfers.The default
setting is on. |
| status |
Displays the current option settings. |
| Working with Files |
| delete rfile |
Delete the rfile from the remote directory. |
| get rfile [l file] |
Download rfile to your local computer and stores it in as lfile. |
| mget rfile1 [rfile2] |
Downloads the remote files rfile1, rfile2, and so on to your local
computer. |
| mput lfile1 [lfile2] |
Uploads the local files lfile1, lfile2, and so on from your local
computer to the remote machine.. |
| put lfile rfile |
Upload lfile from your computer to the remote machine and stores it as
rfile. |
| rename rfile new name |
Rename rfile to a new name on the remote computer. |
| Ending the FTP
Session |
| bye or quit |
Quits the ftp program and returns to the DOS prompt. |
| close or disconnect |
ends the FTP session with the remote computer and returns you to the
ftp> prompt. |
But if you have Cute FTP®, it will be much
easier, just type your host name, user name and password, then upload your files.
Some websites providers have a file manager on their members section on
their server. You must login into the members section to use this file manager. |