Website Development

How to run PHP code in .html or .htm files

No Comments » Written on January 9th, 2013 by
Categories: Website Development

PHP code is in fact compatible with HTML code, allowing for more dynamic developments. You can include PHP code within a HTML code or vice versa as long as you correctly keep the syntax for each language code. However, for PHP code to be executed on the server side, it needs to run in files with the .php extension. The .php file extension tells the server how to execute the code within the file. Including PHP code in a .html or .htm file will not work as the server will execute the code differently because of the extension. So how to override the server settings and tell it to execute PHP inside .html / .htm files as well?

Read the rest of this entry »

How to stop image Hotlinking with .htaccess

No Comments » Written on January 4th, 2013 by
Categories: Website Development

Hotlinking is a term used in the web community for those cases when a webmaster uses on his website an image that is hosted somewhere else. This does happen more and more, as there are many “lazy” webmasters that do not want to waste their time to at least copy the images they use on their own web server. Hotlinking simply puts extra processes on your hosting account, also using a good part of your website bandwidth, making it slower for your visitors.

Read the rest of this entry »

How to downgrade WordPress to an earlier version – Step by Step

No Comments » Written on December 28th, 2012 by
Categories: Wordpress

The WordPress platform is fast moving forward with new changes and development, however many different plugins or WP themse that one or another blogger are using are not updated as fast to stay compliant and functional with the new WordPress versions. So what happens if you have just recently upgraded your WordPress blog to the latest version and found that some plugins or WP themes you are using have stopped operating correctly?

Read the rest of this entry »