Bird
0
0

What does the $_FILES superglobal in PHP store?

easy📝 Conceptual Q11 of 15
PHP - Superglobals and Web Context
What does the $_FILES superglobal in PHP store?
ADatabase connection details
BUser session data
CInformation about files uploaded via an HTML form
DServer environment variables
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of $_FILES

    $_FILES is a special PHP variable that holds details about files uploaded through a form.
  2. Step 2: Compare with other options

    User session data is stored in $_SESSION, database details are not stored here, and server variables are in $_SERVER.
  3. Final Answer:

    Information about files uploaded via an HTML form -> Option C
  4. Quick Check:

    $_FILES = Uploaded file info [OK]
Quick Trick: Remember: $_FILES always relates to uploaded files [OK]
Common Mistakes:
  • Confusing $_FILES with $_SESSION
  • Thinking $_FILES holds server info
  • Assuming $_FILES stores form text inputs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes