I think what you need is an apache rewrite instead of php (php just processes the page and not much more).
For example, in your .htaccess put the following:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ $1.php [QSA]
Essentially, if someone wants site.com/index.html the server would access site.com/index.php and the user would have no idea.
If that seems a bit wasteful/insecure, you could also add an extension handler. Again in .htaccess put the following:
Code:
AddHandler application/x-httpd-php html
In this one, any file that ends in .html will be run as a php file.
A extension handler is a much more simpler way of doing things and you will not have 2 files (in a sense) floating about. It's up to you though 
__________________
PHP Code:
Add_Talkupation('rogem002'); // Because sharing is awesome!
Last edited by rogem002 : 05-25-2008 at 06:21 PM.
|