Archive for May, 2012

Pinterest Board to Promote a Site Experiment

Posted in All on May 24th, 2012 by Jarred – Comments Off on Pinterest Board to Promote a Site Experiment

It kinda seems to me that Pinterest is the new up and coming social media site. It offers a really convenient way to keep track of and share images. You are also able to share and keep track of links to websites which is what I am interested. Currently the main demographic that is using the site seems to be primarily females in their 20-30’s . In a way it almost seems like a reddit but for girls. However, having said all that I am predicting that the site will eventually expand and all the guys will start joining as well.

What got me started on pinterest is I noticed that the search engine results for a keyword I am targeting for my html5 game site had a pinterest board ranked well ahead of my site in the results. So, natural I created my own board to try and help promote my site. Check it out here http://pinterest.com/HTML5GamerNet/html5-games/ . If you do a search for pinterest to promote your site or something like that you will find all sorts of blogs and experts telling you how important it is, but I am still not convinced it will really do all that much good. But, since it was a pretty small time investment I figured to try it out anyways. If by any chance I notice any significant benefit I will either update this post or create another one.

Adding php to and HTML page: application/x-httpd-php5 vs application/x-httpd-php

Posted in All on May 6th, 2012 by Jarred – Comments Off on Adding php to and HTML page: application/x-httpd-php5 vs application/x-httpd-php

Yes there is a difference. I was trying to parse php code in a file with a .html extension. So I do what I always to and look to the web for the syntax on how to edit my .htaccess file. However, pretty much every website will tell you to add one of the following lines:

AddHandler application/x-httpd-php .html .htm

or

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

However some web-hosts (including mine) require you to define specifically  that you are using php5. So instead of the above lines of code you have to include one of the following

AddHandler application/x-httpd-php5 .html .htm

or

AddType application/x-httpd-php5 .html .htm

 

If you don’t include the php5 (for my host at least), it will not work. It is an incredibly frustrating nuance that not many posts and forums do not cover. So, if you are trying to execute php inside of a html page using your .htaccess file and are having problems you might try adding the 5 to the end of php. Funny thing is I am pretty sure I had the same problem a while back but forgot the solution.

A great post which goes into detail regarding which code you should be using can be found here
http://www.velvetblues.com/web-development-blog/how-to-parse-html-files-as-php/