All posts by Morshed Alam

Mysql backup on linux using ssh and cron

Sometimes, we may need to backup and synchronize mysql on linux as a background process. Linux has a great program for this called cron. It allows tasks to be automatically run in the background at regular intervals. Create a script file(.sh) using following code snippet to backup and restore database in to another database: ssh…

Read More

Change file extension in URL

In my previous article I have shown how you can use different extension of a file instead of .php explicitly but in this post I have explain how to rewrite the URL instead of renaming the file extension explicitly. To rewrite the URL you must add following lines in a .htaccess file and place it…

Read More

HTML coding guidelines

This is my third article about coding guidelines. In this article I wanted to give you some general guidelines for HTML coding that will help to improve readability, maintainability and code reuse. It will reduce browser related problem. Following are some guidelines: Must be use doctype in your web page. Everyone should be write well-formed…

Read More

Specify rendering engine of IE

Internet Explorer 8 supports different document compatibility to ensure that your web pages have a consistent appearance in future versions. If you are having trouble on a site in different IE, you can use specific rendering mode to display your web pages by using simple META tag. Below is the META tag to use IE7…

Read More

CSS coding guidelines/conventions

While writing CSS code, everyone should be follow a standard or convention. It is not important to remember a convention what should be follow. Important is to follow any style constantly, actually it is a common sense though it is not common sense to everybody. I am just writing it to provide others with one…

Read More