I have tested the inclusion of PHP tags on a .html file that resides in root directory [for example, I created a phpinfo.html (not .php) file that has the regular php tags and phpinfo() function]. It worked perfectly...I was able to see my php settings. It works well with the following commands in .htaccess file:
AddType application/x-httpd-php .html .php .htm
AddHandler application/x-httpd-php .html .php
However, when I add the PHP tags to the page_1.html page of my template or in a module's template file...the PHP tags are ignored!
I've researched on internet and here, and have tried all kinds of variations of these AddType and AddHandler commands in my .htaccess file...but no success:
1.AddType application/x-httpd-php .html .htm .php
2.AddHandler x-httpd-php .html .htm .cgi .php
3.AddType x-mapp-php4 .html .htm .php
4.AddHandler server-parsed .html .htm .php
5.AddType application/x-httpd-php4 .htm .html .php
6.AddHandler application/x-httpd-php5 .html .htm .php
So in conclusion...DO ANYONE KNOW WHY PHP TAGS ARE IGNORED IN .HTML FILE LOCATED IN TEMPLATE FOLDERS...and not in THE ROOT DIRECTORY FILE?
Or does anybody have any other solution to get PHP tags to work in .html files in folders deeper than the root directory?
I also checked PHP.INI...and have SHORT_OPEN_TAG set to ON.
Thanks
