Php Parsing In Html

Thursday 27th January 2005 07:03:03 AM

To parse php files in the .html extension for webpages create a .htaccess file and insert the following code:

AddType application/x-httpd-php .html

Upload the file to your root directory. From now on everything on your website with a .html extension will be equivalent to a php page.

You can also change or add extensions to the .htaccess file to whatever you want, e.g:

AddType application/x-httpd-php .html .toseef

Now a page with the extension .toseef will also be parsed as a php file.

Posted by Piniyini in Htaccess, Php

<< Blogger Search Engine Friendly URL's   Toseef's Blog   Php Htaccess 301 Redirect >>

post comments feed1 comment       Ctrl + Enter to comment
<< Blogger Search Engine Friendly URL's   Toseef's Blog   Php Htaccess 301 Redirect >>
Post a comment   Track comments
Search

Feeds (Subscribe via Google Reader)
blog posts feed Blog Posts
recent comments feed Recent Comments

Archives
2012  Mar
2011  Sep  Oct
2010  Feb
2009  Jan  Mar  Apr  May  Jun  Jul  Oct  Nov
2008  Jan  Feb  Apr  May  Jul  Oct  Nov  Dec
2007  Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2006  Jan  Feb  Mar  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2005  Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
2004  Aug  Sep  Nov  Dec
Recent Comments
Check out my Blog Roll
/Htaccess
/Php

Says thanks to the following poeple for recently leaving a comment ...

Meblibel
Xbox 360 Repair
Nike Free Shoes
Design A Logo
World Baseball Umpire Videos
Snapback Hats
Assignment Help
Small Business Marketing Servi
Pay To Write A Dissertation
Pay Someone To Write My Disser
Assignment-help
Masters Dissertation Topics
Gdc
Chapel Hill News
Mba Dissertation Ideas