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
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.
Only logged in users can reply.