Category Archives: PHP

How to setup GeoIP to track location of IP addresses

GeoIP is a PHP extension, which is used to get all the information like, city, state, country, longitude / latitude etc for any IP address. You can use this extension to track the visitors to your site. It can help you prepare better analytic for your user-base with the information collected. To install GeoIP, we […]

How to pass $_POST variables via PHP CURL

If you wish to pass PHP POST array variables without submitting a form, using the PHP Curl library to another URL, you first need to have a an Array which holds all the values for the POST array $post[‘lname’] = ‘Last name’; $post[‘fname’] = ‘First Name’ $post[‘mail’] = ‘[email protected]’; Once we have the array set, […]

How to install and enable Mcrypt extension for PHP + Nginx

Sometimes while installing WordPress plugins, you might come across a message to install / enable Mcrypt extension for PHP. Mcrypt is an interface which supports a wide range of block algorithims. It support Algorithims like DES, TripleDES, GOST, OFB etc. Note : The Mcrypt extension relies on the ‘libmcrypt’ extension, which is not maintained since […]