Ubuntu: Configure XDebug and Eclipse PDT

Xdebug is a PHP debugger with Eclipse integration. Here are some instructions for installing it .

First login in ubuntu
Then install xdebug by running below command
sudo apt-get install php5-xdebug

after installation you should edit below file
sudo gedit /etc/php5/conf.d/xdebug.ini

Add below this line
xdebug.remote_enable=1

Error : SWT browser is not available
Sometime eclipse display above error.To fix the above error, please install below package.
xulrunner-1.9.2

Now you are able to debug php code with help of eclipse.
Enjoy!!

Converting character encoding

Introduction ICONV

Iconv is a computer program and a standardized API used to convert between different character encodings.
This module contains an interface to iconv character set conversion facility. With this module, you can turn a string represented by a local character set into the one represented by another character set, which may be the Unicode character set. Supported character sets depend on the iconv implementation of your system. Note that the iconv function on some systems may not work as you expect. In such case, it’d be a good idea to install the » GNU libiconv library. It will most likely end up with more consistent results.

PHP: Enabling, disabling magic quotes

Magic Quotes is a process that auto magically escapes incoming data to the PHP script. It’s preferred to code with magic quotes off and to instead escape the data at runtime, as needed.
Magic quotes is a controversial feature of the PHP scripting language, which was introduced to help newcomers write functioning SQL commands without requiring manual escaping. It was later described and widely misinterpreted as help to prevent inexperienced developers from writing code which is vulnerable to SQL injection attacks. This feature is officially deprecated as of PHP 5.3.0, and removed in PHP 5.4 due to security concerns.

Magento: Web store backup guideline

A system can fail no matter but how fast we can up the system and same applies to the Web store. Thus for preparation it is vital to have a good backup of all those files and database of the solution. For the reason this section describes the resources of different components of backups required for Magento, PHP, and Database. There are three sections which will help webshop to ensure what need to be backup regular basis and keep it safe for the situation of failure.