How to run Php First program in Xampp server.

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Step 1:

First install to xampp server by official link https://www.apachefriends.org/download.html, after that you need to open server to start Apache server. And also start mysql for phpadmin.

Step 2:

Now open any browser in your pc and just type this url: http://localhost and then server run for interprete any php code.

Step 3:

Now create the project file and copy it’s directory and paste into the browser like: http://localhost/myphp/first.php before you create just a folder into c:\xampp\htdocs\myphp

Step 4:

Let us tell you how we create php first program like:

<?php
  $name = "product";
  echo $name;
?>

Step 5:

Now, run it into browser and you get output in next page like:

product