-1

I know the manual process uncomment the line

;extension=php_curl.dll

But I need this enable using php code. any idea?

Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
Shawon
  • 930
  • 2
  • 10
  • 19

2 Answers2

1

This can only be done in the php.ini file.

Edit: Apparently it can be done as the original poster stated.

hexacyanide
  • 88,222
  • 31
  • 159
  • 162
1

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

Community
  • 1
  • 1
Samuel Liew
  • 76,741
  • 107
  • 159
  • 260