Reputation: 5112
I know that it's a very often asked problem, but I've tried all that I found and it still doesn't work.
I use WAMP 2.2 on Windows 7 (64 bits), and PHP 5.4.3. When I call curl_init() in localhost, I've this error message :
Call to undefined function curl_init()
What I've done :
And when I call php_info(), I cannot find curl...
Upvotes: 1
Views: 10780
Reputation: 99
My late reply may be useful to someone.
During my experience of this issue, I found that none of the suggestions here nor on other forums resolved it.
In my case I had installed the Wamp folder outside of the Program Files folder, however the php.ini file incorrectly referenced C:\Program Files\wamp
in multiple places.
Therefore, amending the path in php.ini in several places resolved my issue.
To achieve this:
Upvotes: 1
Reputation: 61
for me, I have wampp installed, none of the former worked. Curl worked only when I clicked the wamp icon and enabled the curl module from there. So left click wamp, choose php extensions and choose curl from there. good luck
Upvotes: 0
Reputation: 94642
Do as 4life suggests, but make sure you get the dll called php_curl-5.4.3-VC9-x64.zip
do not try to use the one called php_curl-5.4.3-nts-VC9-x64.zip
WAMP requred Thread Safe dll's and the -nts- stands for Not-Thread_Safe
Upvotes: 2