Curl Extension - curl_multi_init

Discussion about the open-source Phalanger [?] project.

Curl Extension - curl_multi_init

Postby papachumba » February 14th, 2013, 12:09 pm

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?
papachumba
 
Posts: 7
Joined: December 18th, 2012, 12:49 pm

Re: Curl Extension - curl_multi_init

Postby Jakub Misek » February 14th, 2013, 3:03 pm

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,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Curl Extension - curl_multi_init

Postby papachumba » February 14th, 2013, 3:31 pm

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...
papachumba
 
Posts: 7
Joined: December 18th, 2012, 12:49 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 3 guests

cron

User Control Panel

Login

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 151 on December 6th, 2020, 7:46 am

Users browsing this forum: No registered users and 3 guests