Jump to content

Recommended Posts

Hello,

 

I can't use CURL,

$ch = curl_init();

 

I get the error

Fatal error: Call to undefined function curl_init()

 

I've used phpinfo() and found the php.ini directory,

 

Loaded Configuration File D:\wamp\bin\apache\apache2.2.22\bin\php.ini

I've then edited the php.ini file from that directory and removed the semi-colon in-front of

extension=php_curl.dll

Restarted Apache but am still receiving the error.

 

I'm using Wamp and I know there's another php.ini file in the D:\wamp\bin\php directory, so I've uncommented that line from that file too, restarted Apache and still receive the error.

 

I don't know where to go from here, can anyone advise me please?

Edited by anevins

Thanks Christian F.

I was using WAMP 64 bit version, and needed to use WAMP 32 bit version

http://forum.wampserver.com/search.php?2,search=curl,author=,page=1,match_type=ALL,match_dates=30,match_forum=ALL,match_threads=0

 

Then I used an option in WAMP to just 'tick' CURL from the interface and it works.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.