From Your Local Folder to the Web Server
The process involves moving the files from your local computer to your web server. The process used to move files on the Internet is called FTP (File Transfer Protocol). What distinguishes FTP from most other protocols is the use of secondary connections for file transfers.
When you connect to an FTP server, you are actually making two connections.
- Control connection is established, over which FTP commands and their replies are transferred.
- To transfer a file or a directory listing, the client sends a particular command over the control connection to establish the data connection.
The data connection can be established two different ways, using active mode or passive mode.
Using passive mode, the client sends the PASV command to the server, and the server responds with an address. The client then issues a command to transfer a file or to get a directory listing, and establishes a secondary connection to the address returned by the server.
File Transfer Protocol
FTP (File Transfer Protocol) is standard network protocol used to move files to and from your web server during the process over a TCP–based network such as the Internet. There are two file location that we will concern ourselves with:
Local files are the files that live in the files and directories on your computer or thumb drive.
Remote files are the files that live on the web server.