Or use URL Rewriting.
.htaccess
RewriteEngine On
RewriteRule (.*)\.html $1\.php [L]
This will make the browser think the document is .html but instead the server looks for .php.
PUBLIC URL: http://example.com/index.html
INTERNAL URL: DOCUMENT_ROOT/index.php
Froger93
Junior Poster in Training
74 posts since Sep 2009
Reputation Points: 11
Solved Threads: 6
Yes this should be in a .htaccess file by the way.
RewriteEngine On
RewriteRule ^chatpage\.html chatpage\.php [L]
Will work on the document named chatpage.php and you can access it by the chatpage.html.
Just change the chatpage on both sides for whatever you document name is.
Froger93
Junior Poster in Training
74 posts since Sep 2009
Reputation Points: 11
Solved Threads: 6
You could leave it as an html file, and make your html files parsable as php files (with addhandler in your .htaccess)
I would stay away form iframes wherever possible.
kylegetson
Junior Poster in Training
89 posts since Sep 2009
Reputation Points: 26
Solved Threads: 12