Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

February 24, 2011

2 Comments

Magento

[Magento] How can Set Up Blog in Magento Admin

Many eCommerce websites have their blog pages along with shopping cart. Wordpress is the most popular for blogging but if you are using Magento and want a blog in your website than you can use Magento’s extension for installing blog. Reason for using Magento’s extension for blog is to manage shopping cart and blog from one admin panel.

February 7, 2011

4 Comments

[PHP] What is the difference between sort & asort in php ?

Many times developers are not aware with the core functions of PHP. PHP have sort and asort built in array functions. You may or may not be aware with these functions. But when you will face a PHP interview than you may be asked for this question.

February 7, 2011

No Comments

[PHP] Warning: Cannot modify header information when Create a COOKIE

When you create COOKIE or try to set COOKIE, are you getting error like “Warning: Cannot modify header information – headers already sent” ? This happen if your page starts output on browser. COOKIE is at browser and it will not set if your browser has started output.

February 7, 2011

1 Comment

PHP

[PHP] Parse/Extract Domain name from URL

Do you need to parse only domain from current URL ? If yes than you are at the right place to get the PHP Code. PHP has parse_url built in function to parse a url parameters. This function will parse the url into an array. You can easily get the domain name from whole url of your page using parse_url function

February 5, 2011

No Comments

[Dreamweaver] how can Open .thtml .ctp .phtml (view) Files in Dreamweaver

I am working with Famous PHP Frameworks i.e. CakePHP and Zend Framework in recent days. For CakePHP, view file extensions are either ctp or thtml and for Zend Framework, view file extentions is phtml. They are not opening in Dreamweaver. You need to add file extentions in document types file of Dreamweaver.

February 5, 2011

No Comments

[Magento] Print Error/Exception on Browser or Email it

Magento provides an options to handle error/exception messages. Error can be displayed on Browsers or you can send full error description in an email. In previuos version of Magento, error can be visible on Browser itself while deployment the project. But in new version of Magento, they stored the error in a log file and display the file name only on browser.

February 4, 2011

1 Comment

Javascript and PHP Email Validation

I have noticed that many developers are facing problem in Form Email validation. Developers are always use to make a JavaScript Email validation and forgot to put server side email validation. As a developer, i suggest to put a server side validation as well. Serverside validation is most important if you want to make spamming free web application. Please have a look at both validation code. First is JavaScript Email Validation and second one is PHP Email validation.