Installation of PHP on Local Machine

Installation of PHP on Local Machine
  1. Installation of PHP

Requirement Software : Xampp

Editor : Sublime Text 3

Xampp is a software which provides Apache,MySql with different PHP Version PHP only run by using Server. Here I am using Apache server to run PHP Codes.

Download xampp from following link

Link : https://www.apachefriends.org/download.html

After download completed , install it into your PC . you can see the control panel like below image after installation ,if you don’t see this then search xampp in search bar open it .

enter image description here

Click Start button near Apache and MySQL .

enter image description here Download and install Sublime Text 3 Editor using following link .

Link : https://www.sublimetext.com/3

Goto the path C:/Xampp/htdocs/ create folder named as demo and open the folder in Sublime Editor

enter image description here

Create file name index.php the PHP initially points the index.php file in any folder

Filename : Index.php

<?php echo 'Hello World'; ?>

Save the code in index.php

Goto Browser and enter the url : localhost/demo

enter image description here