This is often the case when using PHP Curl series functions, which are uploaded to the server in a good program for local debugging, and are reported in various errors, such as call to undefined function curl_init () ... This is the most common, then what to do about this error?
Because the Curl series functions belong to a system-level function, it is suggested that the error that did not find the Curl_init function is generally caused by not opening the associated extension. This time we will know what to do, open the php curl extension.
The solution under Windows+apache:
Locate the php.ini configuration file and find it in the file:
Extension=php_curl.dll
This sentence checks to see if there is a semicolon (;), if any, to remove it.
In addition to ensure that the PHP installation directory under the EXT directory under the Php_curl.dll,,libeay32.dll and Ssleay32.dll these three files, if not, you need to download and copy to the Internet just said directory.
Then restart Apache.
The solution under Linux+apache:
Need to install Curl software package, because I am not too familiar with Linux, this process is not described in detail.