How to enable cURL in PHP / XAMPP


Question

How do I enable cURL in PHP?

​​

1
153
6/20/2015 2:53:00 PM

Accepted Answer

Since you're using XAMPP, uncomment the line

;extension=php_curl.dll

in xampp\apache\bin\php.ini, and then restart the Apache service.

NB: In newer XAMPP versions, PHP has moved to root xampp folder xampp\php\php.ini.

131
4/6/2013 3:27:59 PM

On Debian with Apache 2:

apt-get install php5-curl
/etc/init.d/apache2 restart

(php4-curl if it's php4)


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon