Hey ultranet...
In order to get your server to parse PHP elements in pages with a .htm or .html extension, you need to add these two lines to your .htaccess file in the root directory of your site:
Code:
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php .php .htm
I hope these lines are fairly self explanatory...
Deus is right, simply renaming your index.htm or index.html to index.php will suffice, but sometimes isn't always feasible... especially for existing sites that may have a lot of links to their site, or bookmarks in people's browsers!
There is a remedy for that as well which would be to add this line to your .htaccess file:
Code:
Redirect /index.htm http://yourdomain.url/index.php
Now, some search engines give less rank to dynamic pages (.php) than to static pages (.htm/.html) and so you may wish to consider this when deciding your approach.
I'll assume you know this, but when inserting php into HTML pages, you need to open your php segment with a '<?php' and then close it with a '?>' (exclude quotes).
For example:
HTML Code:
<table>
<tr>
<td>Here is my HTML</td>
<td><?php echo 'Here is my PHP'; ?></td>
</tr>
</table>
I hope this helps.
If it does not, maybe post a link to your site and I will have a look!
Mike.