How to enable cURL in PHP / XAMPP
On Debian with Apache 2:
apt-get install php5-curl
/etc/init.d/apache2 restart
(php4-curl if it's php4)
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
.