I know the manual process uncomment the line
;extension=php_curl.dll
But I need this enable using php code. any idea?
I know the manual process uncomment the line
;extension=php_curl.dll
But I need this enable using php code. any idea?
This can only be done in the php.ini
file.
Edit: Apparently it can be done as the original poster stated.
You might be looking for runkit_function_add()
runkit_function_add('curl_init');
This is the opposite of what this user is trying to do in this thread: Programmatically disable specific PHP functions for testing