PHP Error Codeigniter curl_multi_init

This is my code:

class facebookConnection {

            // Allow multi-threading.

            private $_mch = NULL;
            private $_properties = array();

            function __construct()
            {

                        $this->_mch = curl_multi_init();

                $this->_properties = array(
                    'code'      => CURLINFO_HTTP_CODE,
                    'time'      => CURLINFO_TOTAL_TIME,
                    'length'    => CURLINFO_CONTENT_LENGTH_DOWNLOAD,
                    'type'      => CURLINFO_CONTENT_TYPE
                );
            }

I get Fatal error: Call to undefined function curl_multi_init() in /var/www/application/libraries/facebook.php on line 123

This works on my local machine ... maybe this is a problem? I do not understand.

+3
source share
2 answers

It looks like this feature is not installed on your PHP.

check phpinfo (); to make sure it is turned on.

+4
source

If you have WampServer installed, left-click on the WampServer icon in the system tray, go to PHP> PHP Extensions> php_curl to enable curl

or open the php.ini file, add = php_curl.dll and delete ";" at first

+2
source

All Articles