Q. Which PHP function is used to get the current script name?

  • (A) $_SERVER['SCRIPT_NAME']
  • (B) $_SERVER['PHP_SELF']
  • (C) $_SERVER['SCRIPT_FILENAME']
  • (D) $_SERVER['REQUEST_URI']
πŸ’¬ Discuss
βœ… Correct Answer: (B) $_SERVER['PHP_SELF']
Explanation: $_SERVER['PHP_SELF'] returns the filename of the currently executing script.
Explanation by: Admin
$_SERVER['PHP_SELF'] returns the filename of the currently executing script.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
38
Total Visits
πŸ“½οΈ
7 mo ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
88%
Success Rate