Forum Moderators: coopster
--
test.html:
<body>
<head>
<title>but guess what</title>
</head>
<body>
<?
echo"this doesnt";
?>
</body>
</html>
--
i just did a manual reinstall of apache2 and php5
(used [webmasterworld.com...] as my guide)
thx for any advice
j.d.
Search in your apache config file for
AddHandler application/x-httpd-php .php
or
AddType application/x-httpd-php .php
These are the lines that tell Apache to parse your .php files for PHP code. Add the following "new line" to turn on parsing for .html files
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php .html #new line
or if you're using AddType for some reason
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html #newline