Which of the following must be installed on your computer so as to run PHP script?
Correct answer
D. All of above
14 views
D. All of above
14 views
The answer is All of the above as intended by the question: to run PHP scripts locally you need the PHP interpreter itself and a web server such as Apache to hand requests to it, and an editor to write the code.
In practice most learners install a bundle such as XAMPP or WAMP, which packages Apache, PHP and MySQL together so PHP pages can be tested on localhost.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is D? Ask here and get an explanation.