Using cURL with XAMPP

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

If you have read through this blog, you will realise that I am a big fan of the cURL library for PHP. Also, when using windows to code - I like to use the XAMPP package to give me easy access to an Apache, PHP and MySQL stack.

So here is my quick guide to getting XAMPP to work with cURL. Its really easy:

  1. Navigate to your root XAMPP folder

  2. Search for all files and folder with this search query: php*.ini

  3. Open up all of the files in your favourite windows text editor (try notepad++)

  4. Do a find and replace: Find ;extension=php_curl.dll and replace with extension=php_curl.dll (you are just removing the semi colon). Make sure you select to replace in all opened documents

  5. File -> Save All Documents

  6. Restart Apache using the XAMPP control panel

Thats it - enjoy using cURL.


Tags: edmondscommerce