PHP File Upload
- Which function is used to determine whether a file was uploaded?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
is_uploaded_file()
- How many items are available in the $_FILES array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
$_FILEs[‘userfile’][‘error’], $_FILEs[‘userfile’][‘name’], $_FILEs[‘userfile’][‘size’], $_FILEs[‘userfile’][‘tmp_name’], $_FILEs[‘userfile’][‘type’] are the five items in the array.
- Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
$_FILEs Array
- If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
upload_tmp_dir “/tmp/phpuploads/ directory”
- Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Its default value is 16M.