1. Home
  2. Computer Science MCQs
  3. PHP
  4. You use the $_SERVER superglobal and your ___ property to…

Added 19 Jan 2024

You use the $_SERVER superglobal and your ___ property to create your path to check.

  1. $load_dir
  2. $load
  3. $save
  4. $save_dir Correct answer

Correct answer

D. $save_dir

12 views

MCQSEXAM

Explanation

To create a path to check using the $_SERVER superglobal in PHP, you can use the DOCUMENT_ROOT property. The DOCUMENT_ROOT property provides the root directory of the web server where the current script is executing. Combining this with the filename or additional path components, you can create a full path to a file or directory.

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs