Page 1 of 1

Curl Extension - curl_multi_init

PostPosted: February 14th, 2013, 12:09 pm
by papachumba
Hi guys, Im trying to use curl_multi_getcontent and curl_multi_init.
I am getting the following error:
Code: Select all
Error: curl_multi_init(): Call to undefined external function 'curl_multi_init', extension 'php_curl' (function not found).


I have ensured php_curl is enabled by copying the managed extension to web app's bin folder (php_curl.mng.dll)
and I have added following in web.config:
Code: Select all
<add assembly="php_curl.mng, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="curl" />


Is there anything else I need to do or is this function just not available in managed curl extension?

Re: Curl Extension - curl_multi_init

PostPosted: February 14th, 2013, 3:03 pm
by Jakub Misek
Hi,

you are doing it right. However bundled cURL extension is from PHP4, which does not contain these functions yet.

I would suggest to replace them with C#/.NET alternative code, or I can provide you with managed reimplementation of cURL, and sb. can finish implementation of these functions?

Thanks,

Re: Curl Extension - curl_multi_init

PostPosted: February 14th, 2013, 3:31 pm
by papachumba
Argh, bummer! thought it might have been due to v4.0 of extensions...
Basically I wanted to test out an implementation of multi_curl to see if it runs any faster when I hammer my server with concurrent requests :D

If you have any managed ext code I'd be more than happy to give that a whack...