Hey everyone, I just installed XAMPP on my WinXP machine and it is working fine, but I need to configure cURL. I've created a "curl" directory under xampp and placed the php_curl.dll in there. I also uncommented the "extension=php_curl.dll" in php.ini and changed register_globals to On. However, when I look at my phpinfo(), curl is nowhere to be found... Any ideas?
Umm...I don't know... Where exactly is that set? I'm going to go try to track it down... EDIT: Do you mean the extension_dir in php.ini? Yes, that points to a directory that has the php_curl.dll in it. Another question: I don't see lib_curl.dll anywhere in my installation. Do I need to put this somewhere or does php_curl.dll take care of it? And finally: do I need to "include" anything in my application that is making curl calls?
you need the lib_curl.dll as well. Your installation file should have had both - but I do remember that sometimes my download didn't have it. the one at php.net does have it. I don't remember my exact solution though, its been a few years. I think I ended up copying both the files (php_curl and lib_curl) to the php folder, the extension folder (it never found it there) and I think my system32 folder as well and it finally worked. Php is a pain in windows No you don't. When it shows up in the your phpinfo you are fine. the extension works as it should.
Ok, thanks. I put lib_curl in a bunch of different places and even downloaded some other dlls that were recommended in another forum. Nada. I'm beginning to consider buying a cheap desktop and installing Linux...
you need both files in there php_curl and lib_curl as well. One will not do. I'd have to check the server at work to see where mine is. I'm sure I stuck them everywhere. d:\php d:\php\extensions c:\windows c:\windows\system32 You might have to right click on the dlls to register them too. As I said, its been a while, but curl was a pain to get going. Where is the error showing up? Even if you do it right, you will get boot errors (php_curl and lib_curl) not found on your load up screens for windows but you can ignore those. As long as it shows in the phpinfo you are good. I'd just get a host. I'm soooooo much happier since I moved all my files off site. I hated dealing with hosting issues.
I'm still struggling with getting it show up in phpinfo(). Thanks for all your help! I think I am going to try to find a cheap host just for running this stupid cron job!!
I had the same issue with XXAMP. Curl was installed, but was commented out in the .ini file. just remove the # and you should be OK... thats what I remember at least.
Hi, You will need to change quite a few files, it drove me mad till I found that out. The file listing in my case can be found here: http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/ Cheers, Roman
I had this same problem for 2 days until I realized that I had done everything all the tutorials instructed, except I never restarted apache. Hope that helps to you and everyone who is googling it.
Did you add curl ( all dlls ) in the xampp extensions dir ? You can see which it is or can specify it in php.ini
Ahhh, guys, there is only ONE file in xampp that needs to be changed to enable curl, that is in /apache/bin/php.ini file - uncomment extension=php_curl.dll restart apache: POW. finished. Go test it with zelune proxy script (you need curl for it to work) it works, ie: you have curl enabled. Curl is built into xampp already, has been for a long time, i dont know why people download all this other useless crap from the net, you are just making things over-complicated for yourselves. Read the xampp info for gods sake. http://www.apachefriends.org/en/faq-xampp-windows.html#phpini
XAMPP does not enable cURL library by default, you have to tweak around a bit to getit up and running. Here is how... But before that let me explain what cURL is for the benefit of the uninitiated (i was one of which, just a couple of months back!), cURL is a command line tool for transferring files with URL syntax. It supports a number of transfer protocols including HTTP and FTP. One of the most important usage of cURL (and the one that we are concerned with) is that you don't have to depend upon the browser to retrieve the web pages, cURL can retrieve it for you but it would return the raw source and in a terminal window which may not be of much use to a non-technical user but it is a great tool for developers especially at a time when a lot of web services exist that do not cater to the average user but are consumed by other programs over the network. Another factor that increases the importance of cURL is the popularity of services based on REST protocol. Infact all major players on Web including Google, Amazon, Facebook, Twitter and Ebay to name a few, have already implemented REST API on their respective sites. You can try out cURL command line tool by downloading it from here To see how it works, all that you would need to do is go to the command line and into the specific directory and type cURL -[options] URL where URL is the web resource you want to download and the option parameter is specified to perform the particular operation. All functionalities that cURL offers are available through its option parameter, to find out more on how to use options click here The steps described above give you an overview of what cURL is and what it does, to use it programmatically we would require supporting libraries. Thankfully, XAMPP installs the cURL library during its installation but it is not enabled by default, you have to manually enable it. Eliza
@Elizas, is it possible to give the complete link for the cURL commend line tool. You've put "by downloading it from here" in your comment but it hasn't a link to it.