Sep
03
PHP code inside HTML page
Did you ever try to put some PHP code inside your HTML page? It might work, it might not. It depends on your webserver settings. Usually you dont have access to this settings, but you can use .htaccess file to fix this problem. All you have to do is just to put this line into your .htaccess file:
AddType application/x-httpd-php .html
With this line your web server will interpret all your html files like they are php.
2 Comments
Make A CommentComments RSS Feed TrackBack URL


September 3rd, 2007 at 7:43 am
Yes, but this works only on Apache servers
September 15th, 2007 at 6:38 am
You are right with that, but as you can see: http://www.serverwatch.com/stats/article.php/3688206 Apache is still dominant web server