When uploading a file in PHP, which array key of the $_FILES superglobal gives the temporary location of the uploaded file?
- tmp_name
- name
- temp_location
- uploaded_file
The 'tmp_name' key in the $_FILES superglobal array contains the temporary location of the uploaded file on the server. This is important for processing and moving the file.
Loading...
Related Quiz
- What is the purpose of the htmlspecialchars() function in PHP?
- You are writing a PHP function and you need to use a variable that was declared outside of the function. How would you access this variable within the function?
- What is the result of the expression 5%35%3 in PHP?
- Why is it advisable to use exit() or die() after triggering a user-level error in PHP?
- You are writing a PHP script and you need to set a cookie. How would you do this?