0

I get the following error

Fatal error: Call to undefined function curl_init() in C:\wamp\www\google_basic.php on line 37

when i try to run my code. I am using WAMP and the PHP curl extension is enabled and uncommented in the php.ini file, and services have been restarted. Any ideas on getting it enabled?

TIA

Daniel o Keeffe
  • 578
  • 2
  • 10
  • 25
  • Have you verified it is in fact enabled via `phpinfo()`? – Mike Brant Jul 05 '13 at 17:22
  • Hey, there is a SO post with the same issue [Call to undefined function curl_init() error in wamp 2.2](http://stackoverflow.com/questions/12380670/call-to-undefined-function-curl-init-error-in-wamp-2-2). Check that too – Nandakumar V Jul 05 '13 at 17:24

2 Answers2

1
var_dump(extension_loaded('curl'));

To test is cURL is actually loaded.

CodeAngry
  • 12,760
  • 3
  • 50
  • 57
0

Found the answer at Call to undefined function curl_init() error in wamp 2.2 .

Uninstalled WAMP a couple of days ago without the fixed CURL extensions which I had previously installed. Thanks guys.

Community
  • 1
  • 1
Daniel o Keeffe
  • 578
  • 2
  • 10
  • 25