Search code examples
phpcurlxampppearlibcurl

XAMPP and cURL not working, after uncommenting php.ini


Someone else with the same problem still didn't get a decent answer/fix for my problem:

Before you comment or criticize, please make sure you read my proceedures below so as not to repeat what I've seen 100x already in Google and Stack Overflow...

  1. XAMPP (Lite) installed on Windows 7 in C:\xampplite (newest version, only one php.ini file in C:\xampplite\php)
  2. XAMPP and PHP scripts run correctly in http://localhost/
  3. libcurl installed (by XAMPP default) in C:\xampplite\php\ext\php_curl.dll
  4. php.ini edited and saved for removal of ; at beginning of line extension=php_curl.dll
  5. php.ini default for extension_dir = "C:\xampplite\php\ext" correct and left alone
  6. Apache service restarted in Windows Services
  7. Computer restarted
  8. Apache service (manually) restarted again
  9. phpinfo(); still does not display anything with the word "curl" in it
  10. Still no success

Thanks in advance.


Solution

  • I had a similar problem except for error reporting. Searched all over the internet and all I found was "modify the php.ini file". I modified all the php.ini files but I was still getting the same error. Turns out WAMP has visual settings which I believe overwrite the php.ini. So to turn on curl, you'd left click on XAMPP icon in your start start menu -> PHP -> PHP Settings -> php_curl (make sure it is checked).

    Maybe this is your problem.

    Hope it helps.

    -c0d3