Page 1 of 1

XAMPP+Apache+PHP+CURL/binary install (English)

PostPosted: 10. August 2007 23:45
by JAB Creations
My live server has CURL but I'm trying to test locally with XAMPP and a script is saying I need CURL. I downloaded a binary for XP/32 Bit. Unfortunately it's a runtime binary, not an installer. There are NO install directions. The website has install directions for everything BUT binary (because you know that would so make right)?)

Anyway I figure it will probably be as easy as copying the files to right spot, maybe having to edit a PHP config file, and restarting Apache. Here is what was include that don't appear to just be readme files...

curl.exe
curl-ca-bundle.crt

Thats it, everything else looks like readme text files. Could someone please clarify? I've put in some key words so those looking for the same solution will hopefully find this thread in the future.

PostPosted: 10. August 2007 23:48
by Wiedmann
and a script is saying I need CURL.

Can you explain this more detailed?

PostPosted: 11. August 2007 00:05
by JAB Creations
Thanks for the quick reply...

I started reading about curl by doing a Google search specific to php.net, which led me to...
http://us3.php.net/curl

I ended up going through a wizard at...
http://curl.haxx.se/

I have a binary version of curl for PHP for Windows XP 32-bit platform. I have not modified XAMPP much (no modifications in regards to PHP itself). I'm running XAMPP (basic) version 1.5.5.

Any other information needed?

PostPosted: 11. August 2007 00:07
by outlaw
xampp already comes with the curl extension
you have to uncomment the curl extension in /xampp/apache/bin/php.ini

PostPosted: 11. August 2007 00:12
by Wiedmann
a Google search specific to php.net,

Thus you are talking about a PHP script?

- If this PHP script is using the culr extension, just enable this extension in the "php.ini". (verify the extension with phpinfo())

- If this script is using the curl binary via exec(), install the binary (see the documentaion at curl.haxx.se) and configure your script to use this binary ( see the script documentation).

PostPosted: 11. August 2007 00:12
by JAB Creations
haha I was starting to look to see if Curl was included somehow...I saw the files after doing a search for "curl" in the PHP directory.

I changed this...

;extension=php_curl.dll


to this...
extension=php_curl.dll


...and restarted Apache. However the script still says I need Curl. Do I need to uncomment anything else?

Thanks for your help thus far! :)

PostPosted: 11. August 2007 00:39
by JAB Creations
Ok I *think* I have it working now LoL...

I was reading this thread...
http://forums.digitalpoint.com/showthread.php?t=73280

Someone mentioned this page...
http://www.menyhart.net/blog/developer- ... -on-xampp/

I searched for all those ini files, uncommented Curl out in each of them, restarted Apache, and I'm no longer getting that error.

I did not have to copy any files, just uncomment out those lines.

I had to look for php.ini, php4.ini, php5.ini, and they mentioned browscap.ini though I didn't see anything commented there and didn't edit it at all. There may be multiple versions of the same file though in different directories. I did a search directly from the base Xampp directory.