473,327 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Problem with curl_init()

118 100+
Hi,

i used the curl_init() function in my application.


Expand|Select|Wrap|Line Numbers
  1.  
  2. function exchangeToken($token) {
  3. $ch = curl_init(); /* Create a CURL handle. */
  4.  
  5. curl_setopt($ch, CURLOPT_URL,"https://www.google.com/accounts/AuthSubSessionToken");
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  7. curl_setopt($ch, CURLOPT_FAILONERROR, true);
  8. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  9. curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  10. 'Authorization: AuthSub token="' . $token . '"'
  11. ));
  12.  
  13. $result = curl_exec($ch); /* Execute the HTTP command. */
  14. curl_close($ch);
  15.  
  16. $splitStr = split("=", $result);
  17. return trim($splitStr[1]);
  18. }
  19.  
  20.  
i used like that i got the errors as

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.
Jan 7 '09 #1
1 4585
r035198x
13,262 8TB
You need to have libcurl installed first.
Jan 7 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Andres Baravalle | last post by:
Hi, I have a problem using a URL fetching algorithm (HTTP 1.0). To download an image, I used to use this algorithm: <?php Header("Content-type: image/gif"); $referer =...
1
by: Bib | last post by:
I'm working on a box that allegedly has curl support, but when I run a script that access curl, I get this error: Fatal error: Call to undefined function: curl_init() in...
2
by: Jochen Daum | last post by:
Hi, I'd like to pass through an Excel file from one server, (one secret password) to a user (different passwords). I thought I had duplicated the headers: $ch = curl_init();...
0
by: chad.arimura | last post by:
Hey all, I've been trying to write a short script using curl w/ php but can't figure something out: I'm simply trying to login to a website using a posted user/pass combo to an html form...
6
by: Wescotte | last post by:
I'm writing a tiny php app that will log into our bank of america account and retrieve a file containing a list of checks that cleared the previous day. The problem I'm running into is when I...
2
by: McHenry | last post by:
I am trying to use curl however am not having any success with a CLI script. Fatal error: Call to undefined function: curl_init() in C:\PHP4\cli\processweb.php on line 65 Windows XP PHP...
2
by: rohitsavalia | last post by:
here is my code: ====================================================== <? $ch = curl_init(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
by: csteimonts | last post by:
Hey there, if it would be possible, since you have figured out the login function of logging into yahoo from PHP CURL, could you post that solution? I'm having quite a time figuring that...
3
by: Meglio | last post by:
Hi experts and professionals. My goal is to automatically download PDF files and convert them to HTML using pdftohtml library. Here is how it works: 1. It downloads PDF file using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.