cURL / Mailing Lists / curl-users / Single Mail


Re: help please?

From: Daniel Stenberg <>
Date: Mon, 19 Nov 2001 11:36:50 +0100 (MET)

On Sat, 17 Nov 2001 wrote:

[CC'ed to the curl and php list, it probably belongs there better than on the
curl-main list]

> I am trying to get curl working from a PHP script the purpose of which is
> to extract certain text entities from a server to server reply from my
> script.
> I have PHP 4.04 PL installed on my 7.1 redhat /apache server
> I have installed curl 7.5.2 on the server via .rpm file

Uh. Try getting a much newer one. We've probably removed a 100 bugs since the

> this did not work first time round, so looked at /etc/php.ini file only
> to find that curl was not loaded as an automatic extension, (as it is
> with windows version I have run in the past, take out ; to activate)
> So I have put in the line
> (does not work, even after server restart) also
> Any ideas anyone?

Excuse me for talking without being 100% sure on this, but since no one else
has responded...

The curl library is not made to be used by php as-is like that. You must
build the php-stuff that wraps libcurl, and that creates a library that you
can load into php by specifying in that .ini file.

You do that by specifying --with-curl= to the php4 configure script.

I have no idea if this is possible to achive somehow without recompiling php.

    Daniel Stenberg -- curl groks URLs --
Received on 2001-11-19