Handling responses from PHP's cURL

Recently I had a small problem with cURL. The request was supposed to return only JSON data to use in my app. I wrote the following: $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://somedomain.com/api/123'); curl_... Read more »

How to run memcache in PHP

After installing memcached daemon, we have to install memcache PHP extension. yum install php-pecl-memcache or apt-get install php5-memcache If above is not an option try below method. pecl install memcache After successful installation add memcache.so extension to your php.... Read more »

PHP summer time off

Problem PHP has a bug with applying summertime in some timezones. If you’ve set correct timezone in your php.ini file and running still gives you wrong time its quite possible that you’ve just stumbled upon this bug.... Read more »

Wojtek on PHP · · Comments · 1 min read

MySQL PHP PDO error in xampp

If your PDO scripts are crashing Apache after installing xampp 1.7 for windows all you need to do is: download this package http://windows.php.net/downloads/releases/php-5.2.11-nts-Win32-VC6-x86.zip" unzip copy libmysql.dll into xampp\... Read more »