+15 votes
739 views
in Programming by (3.4k points)
I would like to install PHP Webserver on my PC. How can I run PHP files on localhost?

1 Answer

+15 votes
by (580 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 

<?php

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.

Categories

...