+10 vote
asked in Programming by (3.1k points)

I would like to install PHP Webserver on my PC. How can I run PHP files on localhost?

1 Answer

+0 votes
answered by (550 points)
selected by
Best answer

You can use XAMMP. 

First click this link and download the latest version of XAMMP. (Installer)

After you install create a php file and write 


echo("Hello World");


in it and save it into c:\xampp\htdocs\ name : test.php.

Open your web browser and type : localhost/test.php, if you see "hello world" in the webbrowser then it runs successfully.

Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.