How to enable cURL with XAMPP on Windows XP?

cURL stands for Client for URLs. It allows us to transfer files having URL syntax. It supports FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE.

By default cURL is disabled in XAMPP. To enable cURL library with XAMPP we need to modify the php.ini files in our xampp folder.

  1. Locate the following files:

    C:\Program Files\xampp\apache\bin\php.ini
    C:\Program Files\xampp\php\php.ini
    C:\Program Files\xampp\php\php4\php.ini

  2. Uncomment the following line on your php.ini file by removing the semicolon.

    ;extension=php_curl.dll

  3. Open XAMPP Control. Restart your Apache server or computer.
  4. Check your phpinfo if cURL was properly enabled.