cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Curl, PHP, Apache install on Windows ME

From: Nisha G <missnisha00_at_yahoo.com>
Date: Mon, 17 Jun 2002 10:32:00 -0700 (PDT)

 hi,
sorry about that.
curl 7.9.7, Apache 2.0.36, PHP 4.2.1, Windows ME. Apache works fine -- http://localhost is displayed correctly. I can get "hello world" to display in PHP. When I incorporate the following code in my .php file :
$ch = curl_init ();
I receive the following error -- Fatal error: Call to undefined function: curl_init()
Here is the code that I am using......
<?php
//
// A very simple example that gets a HTTP page.
//
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, "http://www.hotmail.com/");
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
?>
I hope this is enough information. Please let me know if you require any more information.
Regards,
Nisha
 
  Daniel Stenberg <daniel_at_haxx.se> wrote: On Sun, 16 Jun 2002, Nisha G wrote:

> I just installed Curl on Windows ME and I get the following error.....
> Fatal error: Call to undefined function: curl_init()
> I'm not sure how to get PHP and Curl working together....

You should consider giving us about a hundred more clues or we won't be able
to help you at all. How did you do it? What curl version? What PHP version?
When it didn't work, what have you tried to make it work? What kind of
install procedure were you following?

-- 
Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-17