i used the curl_init() function in my application.
Expand|Select|Wrap|Line Numbers
- function exchangeToken($token) {
- $ch = curl_init(); /* Create a CURL handle. */
- curl_setopt($ch, CURLOPT_URL,"https://www.google.com/accounts/AuthSubSessionToken");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_FAILONERROR, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Authorization: AuthSub token="' . $token . '"'
- ));
- $result = curl_exec($ch); /* Execute the HTTP command. */
- curl_close($ch);
- $splitStr = split("=", $result);
- return trim($splitStr[1]);
- }
Fatal error: Call to undefined function: curl_init() in F:\contact\demo.php on line 80
and i remove the semicolon before extension=php-curl.dll(php.ini) and i got the another error as
Fatal error: Call to undefined function: curl_init() in F:\contact\demo.php on line 80
PHP Warning: Unknown(): Unable to load dynamic library './php_curl.dll' - The specified module could not be found. in Unknown on line 0
And i am using php 4 version
Please suggest how can i resolve my problem.