DecryptWeb Blog

Opensource Web Solutions

Month: January 2010

Set Default Time Zone

Some of you may have faced the issue for converting timezone for displaying date and time. Means suppose you want to display current time in India, than what will you do for that. You might have added 5 hours and 30 minutes to the default time. But there is already a functionality for that in […]

Connect different database from Magento

Some of you might have worked on Magento. I am listing here points for connecting another database from Magento. 1) Suppose your database for Magento Project is named ‘magento’. 2) There is one other database named ‘wp’. 3) For using this database inside Magento, you need to setup connection in ‘config.xml’ file which resides in […]

List Date Difference

Some of you might have come across the requirement for displaying all the dates between give two dates, especially for drop down listing of dates. I have developed a sample code for getting all date ocurrences between give two dates. You can change the date and modify the code as per you requirement.

URL rewritting

For any site SEO (Search engine optimization) is a very important aspect to be on search list in Search engines. I am describing here simple tips which might be useful to you. Normally a page URL is ending with parameters. For example URL are like http://ursite/index.php?d=1&p=3 But you can change it like http://ursite/1/3 Example:- You […]

Scroll to top