Tuesday, September 25, 2012

How to enable curl in LAMP

Open your terminal and execute the following command

sudo apt-get install php5-curl

curl will be enabled, only if you restart your apache server. To restart apache, please execute the following command from term

sudo /etc/init.d/apache2 restart


To check if curl is enabled or not, use phpinfo() function.

Monday, September 24, 2012

Country list in Mysql



For a new project in tecriti, we need to have a list of world countries in mysql table.

For the last two days, i googled for a solution without any success. Today one of my friends gives a wonderfull link. Guys, please take a look at it. It will be helpful for all of us.

http://peric.github.com/GetCountries/

Link is a GetCountries program in which we can select the specific fields that we want in our mysql table. This site uses Geonames API. Their solution is very flexible and customisable.