Archive

Archive for September 12th, 2009

Force HTML (.htm, .html) files to be parsed as PHP

September 12th, 2009 SiteAdmin No comments

I was asked the following question today, and thought it might be useful to write it up for everyone :

I have an existing web site which is written entirely in HTML.  I have taught myself how to write dynamic code using PHP, and I want to add some PHP code to pages on my existing site.  Here’s the problem : when I upload a page and view it through a browser, I can actually see bits of the PHP code and it is not parsed as PHP. What do I need to do ?

OK, it’s pretty common to have a site written in plain HTML.  A lot of simple sites start out this way.

Now the problem here is simply that the HTML pages are saved as .htm or .html and the web server is not recognizing the need to parse PHP code embedded in those pages.

An easy change to the configuration of the web site will force .htm or .html to have their PHP code parsed and interpreted using PHP.

Simply add the following lines to your .htaccess file :
AddType application/x-httpd-php htm
AddType application/x-httpd-php html


Categories: Technical Tags: , , , ,

Software Reviews

September 12th, 2009 SiteAdmin No comments

There is some pretty cool software available on the web, but it can take some hunting down and a bit of trial and error before you find exactly what you need.

A nice way of finding software that you need is to go for software that someone else has tried out before you and written a review about it.  Most reviews give an unbiased overview of the software along with a list of good and bad points.  You can use this information to help you determine whether you want to try the software out.  Even more importantly, a good review can help you decide whether you want to actually spend your hard earned cash and purchase a license for the software.

Over time, I will be writing reviews of software that I find useful, and posting them here under the category of … you guessed it … Reviews

This should benefit a large number of people, from end users through to software developers and marketers.

If you are an end user looking for software, or someone who likes to keep up with new, good quality software  then subscribe to the RSS feed for this site by clicking on the RSS icon rss2at the top right of this page.

Software developers / software authors, if you would like me to review your software and post it here on site, I am happy to do so.  Generally speaking, I would be looking for a single user license for my personal use in exchange for doing this. Contact me with the details of your software to be considered for a review.

Categories: Reviews Tags: ,