470,815 Members | 1,105 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Problem running Curl

Bib
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
/usr/local/apache/htdocs/CHECK.php on line 6.
Line 6 is:
$ch = curl_init();

Now this script works fine on my development box, but not the
production environment. At first I thought PHP was not compiled with
curl support, but looking at a phpinfo shows me:

'--with-curl=shared,/usr/local'

on the box. The "box" is also a virtual "server" at a hosting
company, so I may not have a lot of lattitude in recompiling php,
etc.. Does this look like curl support is compiled in but somehow
not working, or needs a parameter in the php.ini or something?

Any ideas, anyone?

Jul 17 '05 #1
1 2284
Bib <bi*@soreo.com> wrote:
Fatal error: Call to undefined function: curl_init() in
/usr/local/apache/htdocs/CHECK.php on line 6. At first I thought PHP was not compiled with
curl support, but looking at a phpinfo shows me:

'--with-curl=shared,/usr/local'

on the box. The "box" is also a virtual "server" at a hosting
company, so I may not have a lot of lattitude in recompiling php,
etc.. Does this look like curl support is compiled in but somehow
not working, or needs a parameter in the php.ini or something?

Any ideas, anyone?


Curl support isn't build _into_ that PHP, is compiled as a module. All
you need to do is include the curl module (propably called curl.so),
you'll need to either enable it in php.ini or load it with dl()

--

Daniel Tryba

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Alex | last post: by
1 post views Thread by machodev | last post: by
1 post views Thread by Haluk Durmus | last post: by
6 posts views Thread by Wescotte | last post: by
4 posts views Thread by zorro | last post: by
1 post views Thread by darran | last post: by
11 posts views Thread by Flexor | last post: by
3 posts views Thread by Meglio | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.