I have WAMP and I am running PHP 5.3.13 with Apache 2.2.22.
I have enabled the extension by ticking php_curl. I have restarted my computer.
My code is saying:
Fatal error: Call to undefined function curl_init()
Anyone think what might be going wrong?
My phpinfo does not say anything about curl but in the phpini it says:
;extension=php_bz2.dll
extension=php_curl.dll .
Code calling it is here:
class ***** {
public static $oauth, $debug, $logger, $session_manager, $last_response;
protected static $url, $client_id, $client_secret, $secret, $ch, $headers;
const GET = 'GET';
const POST = 'POST';
const PUT = 'PUT';
const DELETE = 'DELETE';
public static function setup($client_id, $client_secret, $options = array('session_manager' => '*****Session')) {
// Setup client info
self::$client_id = $client_id;
self::$client_secret = $client_secret;
// Setup curl
self::$url = empty($options['api_url']) ? 'https://api.*****.com:443' : $options['api_url'];
self::$debug = false;
self::$ch = curl_init();
This code comes from a trustworthy API. I have starred words that need not be shared.