View Feed
PHP Programmers
Community for PHP Programmers : Ask questions, doubts and help each other get better at PHP
270 Members
Join this group to post and comment.
Divya Koya
Divya Koya • Nov 7, 2018

When installed,XAMPPserver I clicked on the xampp and in htdocs folder, I created a folder named as "myproject" and then I created a file with name "Divya.php" in this folder.

The code written in the file is as below:

echo "Hello World!";


But Instead of output It shows same code....Could Anyone  please help 

me ......

Kaustubh Katdare
Kaustubh Katdare • Nov 7, 2018

What is the URL through which you are trying to access your file? If you saved your file within htdocs/myproject/Divya.php , then you should be able to see "Hello World" on the URL:  localhost/myproject/Divya.php 

Also check in your XAMPP configuration if the PORT is set to 80. If not, you will have to add the port number to your localhost. For example: localhost:8080/myproject/Divya.php

Make sure to replace the 8080 with the PORT number that is set in your XAMPP.

If this does not work, let us know the error you are facing so that we can help you out. 

Share this content on your social channels -