how to enable curl in xampp-Collection of common programming errors

As you said, we’ll uncomment the line “;extension=php_curl.dll” in php.ini

php.ini can be in multiple places. To check where the pertinent one is, go to phpmyadmin (http://localhost/phpmyadmin) run phpinfo() -> left hand side menu.

It’ll say a half page down in the left column: “Configuration File (php.ini) Path” with the path in the right column.

Or just search the page for php.ini (Ctrl+F)

Different versions of xampp had php.ini if in different directories, and some have 3 versions of the file in different places. Many tutorials say to change all of them in case you change settings/uses later.

Open file in text editor and find the line (via search) ;extension=php_curl.dll

Remove the “;” to uncomment it, so it becomes: extension=php_curl.dll

Save file. Restart apache.

Double check and run phpinfo() again. Search for “curl” Under “cURL support” It should say “enabled.”


Originally posted 2013-11-09 23:20:50.