PHP files have a default file extension of..
Correct answer
C. .php
12 views
C. .php
12 views
PHP files use the .php extension by default. The web server is configured to pass any file ending in .php to the PHP interpreter, which runs the code on the server and returns plain HTML to the browser.
Files saved as .html or .xml are normally sent as they are, so PHP code inside them would not be executed unless the server is specially configured.
For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.