Home > PHP & Programming > Quizzes > PHP Programming Basics Practice Test: Uploading Files with PHP
PHP Programming Basics Practice Test: Uploading Files with PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 69% Most missed: “Which function is used to determine whether a file was uploaded?”
To upload files using PHP, you can: Configure the php.ini file to allow file uploads Use an HTML form with a method attribute set to post and an ` enctype` attribute set to multipart/form-data Use a `file element to specify the file to upload Use the multidimensional $_FILES array to access information about the file upload Use the information in the $_FILES array to move the file from the temporary directory to the desired location  When a file is uploaded, it's saved as a temporary file, and the full path to this file is in the temp name element. Once uploaded, you need to move this... Show more
PHP Programming Basics Practice Test: Uploading Files with PHP
Time left 00:00
10 Questions

1. How many items are available in the $_FILES array?
2. Since which version of PHP was the directive max_file_limit available.
3. If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?
4. Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?
5. What is the default value of the directive max_file_limit?
6. What is the default value of max_input_time directive?
7. Which directive determines whether PHP scripts on the server can accept file uploads?
8. Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script?
9. Which function is used to determine whether a file was uploaded?
10. Which of the following directive determines the maximum amount of time that a PHP script will spend attempting to parse input before registering a fatal error?