We can upload files by using move_uploaded_file(). There are two parameters for the move_uploaded_file function. One is to specify uploaded file details and other is to specify new file details to be created.
The steps to follow are
1) Include enctype="multipart/formdata" in the form tag.
2) Using method post is recommended.
3) We use $_FILES super global array to get the uploaded file details.
4) By using $_FILES we can validate the file for size, file type.
The steps to follow are
1) Include enctype="multipart/formdata" in the form tag.
2) Using method post is recommended.
3) We use $_FILES super global array to get the uploaded file details.
4) By using $_FILES we can validate the file for size, file type.
Learning PHP is not that tough but it is not easy as well. You can Learn PHP OnlineLearn PHP Online from the tutorials available on the internet.
ReplyDelete