WebHostServer.com (tm)

 
Making web hosting work for your business
 A FineE (tm) Web Property


Visit FineE.com with over 250 premium domains for sale
 

   

 Home    Domain News    Resources    Trademark Search    Webmaster Forums    Articles    About Us

 
     
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Web Hosting
Directory

 

 

Web Hosts
(ap-gl
)

Web Hosts
(hn-mi
)
Web Hosts
(my-y
a)
Web Hosts
(yo-zo
)
 
  Dedicated
Servers (ap-we)
Dedicated
Servers (yo-yo)
 
  DNS Hosting
 
  Email Hosting
 
  Free Hosting
 
  Shared
Hosting (ap-ho)
Shared
Hosting (in-po)
Shared
Hosting (st-yo)
 
  Server
Co-Location
 
  Unlimited Domain
Hosting Plans
and Virtual
Private Servers

 

  Microsoft
Windows
Hosting
 
  Web Hosting
Directories
 

Webmaster
Forums Directory

 
  Forums Home
Webmaster
Forums (ak-in)
Webmaster
Forums (ji-we)
Webmaster
Forums (we-we)
Domain Forums
 

 

 
 
 
 

 

Making PHP Read as HTML
by Mitch Keeler

In a recent article I wrote, I mentioned a neat way to track when Google visits your Web site. The only problem is I got dozens of E-mails from people who used the ".html" extension on their pages who wanted to know how they could make it work on the Web site they run. I have good news. With a little work, you can make PHP readable on a HTML-based page.

This is actually more of a work around than a real answer. You should also know that by doing this, you will be pushing all of your Web pages with the ".html" extension through the server's PHP parser. Simply put, all the Web pages will be pushed through the part of the server that reads PHP code.

This could put somewhat of a strain on the server itself, but I have yet to really see a huge problem reported with it. If you have a dozen or so pages, you probably will not see a problem. However if you have thousands of pages, I would not recommend this.

All you need to do is add a line of code into your .htaccess file

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

That is it. Now will treat all the code in your pages as PHP before it displays it on the page, making my previous article now possible, even if you have a ".html" extension on your Web site pages.

 

About The Author

Mitch Keeler is a guy who likes to help people out in his own charismatic and odd way. Instead of showing somebody how to do something, he much more enjoys having people see the problem and the solution through his own eyes. Mitch has worked as an article and content writer for various Web sites around the globe.

Mitch Keeler is also a former Customer Service Director and Customer Service Manager for a large Web hosting company. Please feel free to contact Mitch or look over his impressive resume of accomplishments

www.mitchkeeler.com

Articles by Mitch Keeler

 

 

 

 

 

     
 

 

 

 

 

 
 

 

Webmaster
Articles

 
  Articles Home
Author Directory
Articles by Title
(00-20)
Articles by Title
(21-a)
Articles by Title
(b-c)
Articles by Title
(d-f)
Articles by Title
(g-howm)
Articles by Title
(hown-in)
Articles by Title
(io-l)
Articles by Title
(m-r)
Articles by Title
(s-theh)
Articles by Title
(thei-u)
Articles by Title
(v-webs)
Articles by Title
(webt-z)
 
 

Home  Link to Us  Legal  Privacy  Contact Us  About Us
Copyright ©  2003 - 2006 Aspen Investments Inc. Articles included in this site are Copyright © by
 the respective authors and used with permission.  All rights reserved