Installation 1. Installing MySQL 5 sudo apt-get install mysql-server mysql-client 2. Installing Apache2 sudo apt-get install apache2 3. Installing PHP5 sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl sudo apt-get install php5-xcache 4. Restart Apache sudo /etc/init.d/apache2

Sometimes you need to convert a json string to CSV in PHP. For example we want to get the names Norrmalm and Liljeholmen (cities names at Sweden) from the following json string: ‘{“Norrmalm”:”502″,”Liljeholmen”:”491″}’; Here is the simplest solution: $jsonStr='{“Norrmalm”:”502″,”Liljeholmen”:”491″}’; $csv = str_replace(array(‘[‘,’]’), ”, json_encode(array_keys(json_decode($jsonStr, true)))) echo $csv; It will print out : “Norrmalm”,”Liljeholmen” How it