Sorry, I realise this is an oft-asked question but I've followed all of the standard advice to no avail.
I'm trying to use a php library written by somebody else which provides wrapper functions for curl. I have uncommented extension=php_curl.dll in the php.ini file, saved it and restarted my server (Wampserver). I have also done a phpinfo() in the browser which says that curl is enabled, however I continue to get the error mentioned above.
Here is snippet of the code, with the offending line 249 -
function http($target, $ref, $method, $data_array, $incl_head)
{
# Initialize PHP/CURL handle
$ch = curl_init(); <----
# Prcess data, if presented
if(is_array($data_array))
{
# Convert data array into a query string (ie animal=dog&sport=baseball)
foreach ($data_array as $key => $value)
etc...
I have triple checked all of the above and even restarted my computer and checked again in desperation - the curl extension is definitely uncommented and phpinfo() definitely shows curl as being enabled.
Hope someone might have an idea what's up?
Thanks, Paul.