Mind showing me the page?
There are two things that can be done in this situation:
1) The easy way out. Open up .htaccess and type the following:
Code:
AddType application/x-httpd-php .html .php
2) Create a blank php file. In the PHP file, call the original document with the following:
Code:
<?php
include('index.html');
?>
This way, the php inside of the HTML document would be rendered. I use this type of coding for my own website. The advantage is that you can break up your current file (say index.html) into pieces... Header, Footer, Body. With every new page you want to create, all you'd need to do is switch the body include. Here's an example:
Index.php:
Code:
<?php
include('overall_header.html');
include('index.html');
include('overall_footer.html');
?>
As you can see, there is a footer, header and a body. Index.html being the body. When coding these seperate HTML documents, you must rmember that you are including them into one (in the end). Therefore, you would not have three header, and body tags ( <body>, </body> found in HTML documents), but rather one that may start in the header and end in the footer!
The advantage to this type of coding would be that if you needed to make a change to...say your header - all you would have to do is edit your overall_header.html.
I'll prove this by showing an example of another file:
Shop.php:
Code:
<?php
include('overall_header.html');
include('shop.html');
include('overall_footer.html');
?>
As you can see, the only thing that has changed is the body include. So if I were to edit overall_header.html - both shop.php and index.php would show the changes. This is especially useful when you have more than a few hundred pages!
I'm sorry that I've travelled a bit off topic. Essentially, that should solve your problem. If you'd like to know more about this type of layout - please simply say so. I can go through the problem of having the same title on every page (as the title tag would be in "overall_header.html" and included in all pages..