Using cURL with XAMPP
February 27th, 2008Read More curl, xampp
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.
Related Blogs
http://www.vladimirated.com/web-development-how-to-enable-curl-on-xampp-for-win32
http://www.tildemark.com/programming/php/enable-curl-with-xampp-on-windows-xp.html
http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/
http://incoherentbabble.com/2007/04/21/using-curl-in-xampp/












































February 27th, 2008 at 4:22 pm
Just as a side note, since I got pinged by the related blogs section, thought I’d point out for anyone that may be wondering… You don’t technically have to edit ALL of the php.ini files, just the current running version (apache/bin/php.ini).
The only reason any of the other php ini files exist are to facilitate XAMPP’s PHP version switching. It allows you to switch between running PHP4 and PHP5, so there are config files for each.
If you don’t plan on switching back to PHP4, there’s no reason to edit more than one file.
February 27th, 2008 at 4:26 pm
This is true, the reason I suggest editing all of the files is just in case you do decide to switch for some reason and all of sudden it stops working…
But yes if you only ever use XAMPP in PHP5 mode then you can just edit the one file.