Tags:

When to use Redis instead of MySQL for PHP applications?


I’ve been looking at Redis. It looks very interesting. But from a practical perspective, in what cases would it be better to use Redis over MySQL?

Tags:

What is the best standard style for a toString implementation? [closed]


We have a lot of objects for which we like to implement a simple toString to output attributes of the object. Some of these attributes may be complex objects themselves. Is there any standard, or …

Tags: curl libcurl php

Curl request is failing on the SSL?

Tags: , ,


I have this code if(ereg(“^(https)”,$url)) curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false); // execute, and log the result to curl_put.log $result = curl_exec($curl); $error =…

php – Is strpos the fastest way to search for a string in a large body of text?

Tags: , , ,


if (strpos(htmlentities($storage->getMessage($i)),’chocolate’)) Hi, I’m using gmail oauth access to find specific text strings in email addresses. Is there a way to find text instances quicker …

pdf download html2pdf

Tags: , , ,


i am using html2pdf class to generate pdf. in my problem its generate pdf for the html code but it not give the dialog box option to download that pdf. plz help my cose is following. <?php …

Tags:

No xdebug in phpinfo()


I have added following lines into php.ini [XDebug] zend_extension = C:PROGRA~1PHP5extphp_xdebug-2.1.0-5.3-vc9.dll xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost …

Reconnection of Client when server reboots in WebSocket

Tags: , ,


I am using web socket using PHP5 and the Chrome browser as client. I have taken the code from the site http://code.google.com/p/phpwebsocket/. I run the server, and the client is also connected. I …

Tags: php post webhooks

How do I debug a webhook POST?

Tags: , ,


A webhook is sending me a POST, and I want to do some debugging on it. Currently I’m looping over the array and then sending a mail() to myself instead of printing (because how could I see what’s …

Tags:

PHP session without cookies


Is there a way that I can initiate a persistent session in PHP without the placement of a session cookie? Are there other ways of maintaining a session across pages, such as an IP address-based …

How can I get specific value in array

Tags: , ,


I will explain clearly $array = array(“1″ => array(0 =>”aa”,1 =>”bb”, 2 => “cc”,3=>”dd”), “2” => array(0 =>”aa1″,1 =>”bb1″, 2 => “cc1″,3=>”dd1”)); In …