Great tip on using PHP in you static html pages.

By Awmnet - Last updated: Monday, September 14, 2009 - Save & Share - Leave a Comment

For all those people who need to include some PHP code in their static html pages and don’t know how to do it better I have some great advise.  I wanted to include short PHP code which is required by Link Organizer (great link exchange script) and I was already thinking about converting my static sites into dynamic ones, but the solution appeared to be much more easier. The only thing you need to do to make Apache execute php commands in html and to add the following string: AddType application/x-httpd-php .html in your .htaccess file ( you can create one with only this string). I hope this small tip was useful for you! Enjoy!

Posted in Blogging • Tags: , Top Of Page