First of all: Why isn't xampp setup to work with php right out of the box? Considering the number of people I see all over the web complaining that their PHP just doesn't work, it would seem a no brainer if xampp would be properly configured to do this right from the start. Especially for those of us who use the defaults from the install. I mean really... follow the default installation options and... IT DOESN'T WORK?
Ok... enough ranting.
So I created a simple test document called c:/xampp/htdocs/test.html which is nothing more than:
print "Hello world";
I then try to open it with Firefox and IE at the following address: http://localhost/test.html and what happens?
However, if I write the same code into a test.php file and use http://localhost/test.php , it does work.
Viewing the source shows the document I typed so it did locate the document but the PHP interpreter just didn't work.
Oh and I disabled Skype as it caused issues (port 80). Apache is up and running, it just refuses to execute php code embedded in a html file.
PS: I've been a computer programmer for 20 years now, mostly Business Basic and VB, so don't be afraid of using programmer terminology. I'm new to PHP and Apache but not computing.
Thanks for the help.