Bird
0
0

If you run php -m in the terminal, what will it display?

medium📝 Predict Output Q5 of 15
PHP - Basics and Execution Model
If you run php -m in the terminal, what will it display?
APHP configuration file path
BPHP version number
CList of loaded PHP modules/extensions
DPHP error log contents
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'php -m' command

    The 'php -m' command lists all loaded PHP modules and extensions.
  2. Step 2: Differentiate from other commands

    Other commands like 'php -v' show version, 'php --ini' shows config path, none show error logs.
  3. Final Answer:

    List of loaded PHP modules/extensions -> Option C
  4. Quick Check:

    'php -m' lists PHP modules [OK]
Quick Trick: 'php -m' shows loaded PHP extensions [OK]
Common Mistakes:
  • Confusing with 'php -v' for version
  • Expecting config file path output
  • Thinking it shows error logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes