Home »
MCQs »
PHP MCQs
Which element of the of PHP $_SERVER variable is used to get the path of the current script?
123. Which element of the of PHP $_SERVER variable is used to get the path of the current script?
- SCRIPT_NAME
- SCRIPT_PATH
- PATH
- FILE_PATH
Answer: A) SCRIPT_NAME
Explanation:
The SCRIPT_NAME element is used to get the path of the current script.