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?
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?
Comment