Run Php code in html files.

Sponsors

Just use following code in your .htaccess file or apache configration file.

AddType application/x-httpd-php .html

Or for .htm

AddType application/x-httpd-php .htm

I found following article useful.
http://php.about.com/od/advancedphp/p/html_php.htm

You may like following Articles!

This entry was posted in PHP and tagged , by Wordpress API. Bookmark the permalink.

About Wordpress API

API means Application Program interface. In Wordpress API we are giving all the information about wordpress API. We worked for many wordpress plugins and themes. We have expertise in PHP, Databases, Graphic Design, Ruby on Rails, Java, Wordpress, Drupal and many CMS. We always give you the best solutions about wordpress and other related topics in This Blog. We will give you always fresh tips and tricks and techniques about wordpress in this blog.

7 thoughts on “Run Php code in html files.

  1. Pingback: uberVU - social comments

  2. I found your blog on google and read a few of your other posts. I just added you to my Google News Reader. Keep up the great work Look forward to reading more from you in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>