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

curl-and-php

Re: installing curl

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 16 Sep 2004 09:32:44 +0200 (CEST)

On Wed, 15 Sep 2004, wrote:

> I succeeded in installing "Curl" but impossible to use libcurl for PHP.

So what exactly is "Curl" in your view?

> So I searched on the internet, but it is said to compile PHP using
> --with-curl=/usr/

Yes, that's how you build PHP to enable the PHP/CURL module.

> I did it, then the [Curl] module appears in php.ini with the right folders.
> But I always have the same error : "Fatal error: Call to undefined function:
> curl_init() in /var/www/html/test/ex_curl.php on line 3".

Then you seem to have failed.

> My system's config is : Mandrake 10.0 / Apache 2.0.48 / PHP 4.3.4

I wouldn't be surprised if there are pre-built RPM packages for you to install
instead of building everything on your own.

Anyway, since you are having trouble with building and using PHP properly. I
suggest you ask these questions in a PHP-related forum.

Sorry, but I have no PHP clues.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-16