This question already has an answer here:
I know we can enable curl extension by removing semicolon in php.ini
;extension=php_curl.dll
but i need to enable it using set_ini() Could anybody tell me how to enable cURL in PHP using set_ini ?
</div>
Try dl
dl
dl('php_curl.dll');
You'll need to set enable_dl to use this function
enable_dl
Note that dl doesn't work with some versions of php 5.3