Run Php code in html files.

Written by Sony on 23 December 2009 in , | 7 Comments

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

Tags: ,

You might also like

How to remove the www from url with rewite rule
Compress the server response with Nginx
how to remove the the blog or category word from wordpress URL
clean url with html file
How to add www to domain name through apache or htaccess

7 Responses to “Run Php code in html files.”

  1. Social comments and analytics for this post…

    This post was mentioned on Twitter by wordpressapi: Run Php code in html files. http://is.gd/8qGnA...

  2. extenze says:

    Very nice information.

  3. Extenze says:

    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.

  4. provestra says:

    Very nice information.

  5. I included your blog to my RSS feed, thanks for the article! Hoping for another article soon! Thanks!

  6. Hola! I really enjoyed your blog post and think you brought up a lot quality points! I added your blog in my RSS feeds, hope you post soon! Thanks!

  7. Hola! I really liked reading your blog and think you brought up many good points! I added your blog in my RSS feeds, hope you post soon! Thanks!

Leave a Reply

Wordpressapi is developer code book.
wordpressapi on Facebook
© 2010 Wordpressapi. All Rights Reserved. Reproduction without explicit permission is prohibited.