PHP Tags not working the deeper you go into Dolphin code

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

Quote · 31 Jan 2012

Templates(html) files can't contain PHP code, also it isn't good practice to insert php code directly into templates.

If you need to insert some dynamic functionality in template files you need to change the code which call this template.

Rules → http://www.boonex.com/terms
Quote · 1 Feb 2012

http://www.boonex.com/forums/topic/PHP-tags-not-working.htm

 

Please don't make duplicate topics.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 1 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.