- embedded PHP: <?php echo "Hi again!"; ?>
- SSI in HTML-comment style: <!--#echo var="DATE_LOCAL" -->
- SSI in HTML-comment style to include the results of running a script: <!--#include virtual="/myPHP/hello.php" -->
At first, just the embedded PHP was working (the default upon installation).
Then, I added "Option +Includes" and also filters, after which everything was working except the script results were not being returned. I had the HTML page saved with extension ".phtml".
There is no problem with the script, because it worked under a traditional Apache installation. (I actually couldn't get embedded PHP to work under a traditional installation and decided to try XAMPP.)
But, once I added ".shtml" to my filters, nothing works, not even embedded PHP. I even tried saving a copy of the page with each extension. I made the changes wherever I noticed filters were used in httpd.conf, not just in the default directory.
Here is an example:
Options FollowSymLinks +Includes
Deny from all
AddType text/html .shtml .phtml
AddOutputFilter INCLUDES .shtml .phtml
My XAMPP installation details are in my signature. Normal test HTML pages (both the included ones and my own in a lower folder) work fine.