Run first program in PHP

꧁ Digital Diary ༒Largest Writing Community༒꧂


Meri Kalam Se Digital Diary Create a free account



Run first program in PHP

Step1:- Assume you installed xampp in C Drive.

Go to: C:\xampp\htdocs.

Create your own folder, name it as sanreaders.

Step2:- Now create your first php program in xampp and name it as firstprogram.php

<!DOCTYPE html> <html> <body> <?php echo "Welcome you in world of PHP...!"; echo "My first PHP Program...!"; echo "sanreaders"; ?> </body> </html>

 

Note:- Save file file name.php and sellect all if you use notpaid(not only .txt).

 

Step3:-Now double click on XAAMP CONTROL PANELon  desktop and START Apache, OR "My SQL"(and other according your needs but Apache is compulsory).

 

 

Step4:-Type localhost on your browser and press enter:
It will show the following:

Step5:-Now Open the Web browser and type the following on :

http://localhost/sanreaders/

 

Step5:-Below screenshot shows php files created under folder �firstprogram�

Step6:-Click on firstprogram.php and it will show the following:

 

Output:-The RESULT is Show in figure below.
This way you can run your php program in XAMPP server�

 

Let me know, If you have any problem. I am happy to solve it. Happy Coding 




Leave a comment

We are accepting Guest Posting on our website for all categories.


Comments

Wefru Services

I want to Hire a Professional..