What are protocols? Protocols are like rules of communication for a given situation. For example, when you meet someone at night, you would have a conversation that goes something like this: “Good evening, how are you doing?” Now, you say, “good evening,” because that is the accepted rule for greeting someone at that time of the day. That is a protocol. Computer or Internet protocols work in the same way. For example, to transfer a file, you use the File Transfer Protocol, to send and receive web pages, we use HTTP or Hyper Text Transfer Protocol, and so on. Most of the protocols are described in documents called RFCs, or Request for Comments. These protocols are defined by the Internet Engineering Task Force (IETF) and can be found at http://www.rfc-editor.org. Since there are hundreds of protocols, we are not going to write about all of them. Instead, we are going to look at the most popular ones. To start with, we are going to create an FTP client that will carry out all of the tasks that a normal FTP client application normally carries out. A useful FTP client will enable you to do the following:
And this is what our FTP client application will offer us. So what functions does PHP offer us in this regard? Take a look at the list below:
The above list does not show all the FTP functions that PHP offers, but it shows the most commonly used functions.
blog comments powered by Disqus |