In my httpd.conf there is a line that says :
AddType application/x-httpd php .php .php4 .html
and so I can put php code in .html files
However recently I found out that when an .html file contains perl code the server prompts me for download.
This is not good since I have a whole site ready , based on mod_perl and written in .html files ,and I have to make it work simultaneously with the php .html files ...
if this makes any sense to you, plz help me ..
What about:
AddType application/x-httpd php .php .php4 .html
AddType application/x-httpd cgi .cgi .htm
Or something like that. Then the server knows html are php files and htm are perl files.
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
AddHandler application/x-httpd-php .htmlAddType cgi-script .cgi
AddType perl-script .pl
AddHandler perl-script .htm
.php, .php3, .phtml, and .html will all be handled by PHP.
.cgi will be handled like any normal CGI script.
.pl, and .htm will both be handled by mod-perl.
Might mean you will need to change a few links on your existing work, but will ensure it all works in the end.
noSanity
PS: You can swap .htm and .html so you won't have to change so many links......
Anyway thanx again
Andreas