Self-Test Questions in PHP Language For Beginners Part 17


1. With which function can you sanitize user input, converting HTML special characters into safe entities?
2. What encoding type should an HTML form use in order to be able to upload files to a web server?
3. What input type should an <input> element use in order to allow a file to be selected for uploading via a form?
4. When a form has uploaded a file to a web server, which PHP superglobal array will contain all the details about the file?
5. What are the five pieces of information you can retrieve from PHP after a file upload, and how?
6. Assuming the uploaded file is an image, what are the three main types that it could be?
7. How can you ensure that an uploaded file will not compromise your web server?
8. Once you have received a file and sanitized its filename, what must you do to place it on your system?
9. What can you do to lessen the possibility that “bots” are accessing your websites instead of humans?
10. When processing filenames, what function is it a good idea to call if your program may have to run on different platforms?

Self-Test Questions in PHP Language For Beginners Part 17

No comments:

Post a Comment