- 2
Why is my php not working?
I followed all the instructions to get php to work and wrote a basic "Hello World" program. This is what's written in the file: <?php echo "Hello World"; ?> And this is what appears when I open it with chrome: <?php echo "Hello World"; ?> I think it's pretty clear why I don't think this is working... Please help me! EDIT So I decided to try and uninstall xampp and instead use wampserver and that seems to have worked.
2 Answers
0
Always remember the extension of php, should be in .php like index.php, home.php. You are using . html extension that's why it's happening. Note: if you are running php you need a localhost server use xamp or wamp and start apache.
- 1
I have restarted apache nd even tried reinstalling xampp and still nothing works.
Also no, I have not been using the .html extension, I used .php