shtml, virtual includes and php
Posted: 17. November 2008 23:43
The following configuration runs in the production environment
.htaccess
AddHandler application/x-httpd-php .shtml
index.shtml
<!--#include virtual="/commonfiles/header.htm" -->
<?php
PHP code
?>
*********************
Just downloaded today - Under Vista - XAMPP 1.6.8 installed (no modifications) on USB stick via PortableApps
The PHP code executes but in place of the includes I get the error directive message which of course means the directory is not found.
Directory - xampp/htdocs/xampp/commonfiles/
Direcory - xampp/htdocs/xampp/index.shtml
********************
Not sure what I have to change in .htaccess, config or? to get the virtual includes to work.
Changing the includes is not an option as this is the only way they work in the production environment
Any ideas or suggestions would be greatly appreciated
.htaccess
AddHandler application/x-httpd-php .shtml
index.shtml
<!--#include virtual="/commonfiles/header.htm" -->
<?php
PHP code
?>
*********************
Just downloaded today - Under Vista - XAMPP 1.6.8 installed (no modifications) on USB stick via PortableApps
The PHP code executes but in place of the includes I get the error directive message which of course means the directory is not found.
Directory - xampp/htdocs/xampp/commonfiles/
Direcory - xampp/htdocs/xampp/index.shtml
********************
Not sure what I have to change in .htaccess, config or? to get the virtual includes to work.
Changing the includes is not an option as this is the only way they work in the production environment
Any ideas or suggestions would be greatly appreciated