Think of an application where you want your users to upload files to your machine. Uploading files in PHP is very easy. You can upload any type of file from client to server.
Files are uploaded from the browser using an <input> tag, with the type parameter in the <input> tag set to "File". This is supported by all popular browsers currently available on the market. The important thing is to set the ENCTYPE attribute of the form to "multipart/form-data" and set the form's action element to the file upload page. The file upload page will handle the file uploading.
The code is on the next page
Comments