In C:\Program Files\XAMPP\htdocs, I have an Index.html file that includes a simple PHP echo command. I’ve also tried the phpinfo. None of the PHP works, though the HTML does show up in my browser.
- Code: Select all
<?php echo "Howdy!"; ?>
<?php phpinfo(); ?>
~~~~~~~~~~
I have read a lot of help and had been trying much more complicated things, for example, working from my own web development directory and setting the DocumentRoot in httpd.conf file, accordingly.
But since none of the things I tried worked (and I could not get any help in other places), I backed everything out, uninstalled the previous Apache, and then started over with a fresh XAMPP installation. I’m now trying the simplest thing I can imagine, and I can’t even get that to work. I would very much appreciate some help.