How to Read a Text File From a Client Using PHP

There are two methods you can use for handling file uploads from a client to a server using PHP. The POST method, used by Web page forms, encodes the file as part of the HTTP request from the client. The PUT method, used by clients like Netscape Composer, writes the file directly to the socket connection established with the server.

POST Method