Page 1 of 1

Installing CURL

PostPosted: 25. January 2004 14:58
by cornernote
Hello,

Has anyone installed CURL with XAMPP for windows? I would appriciate any tips of advice on installing it.


Best regards,
Brett

PostPosted: 25. January 2004 15:03
by cornernote
Just found this post:
http://community.apachefriends.org/f/viewtopic.php?t=16

I did what it said with no luck. curl_init() still comes back as undefined function. I cannot read any of the comments as they are not in english.

PostPosted: 22. February 2004 05:06
by cornernote
Hello,

After hours and hours of looking around I figured it out! YAY!

I was editing:
C:\xampp\php\php.ini

Then I looked at my phpinfo to see where the php.ini was loading from. Turns out it is here:
C:\xampp\apache\bin\php.ini

I feel so stupid but I will post incase someone else makes the same mistake.


Best regards,
Brett

i did for a while

PostPosted: 26. February 2004 00:37
by MAGnUm
but when i change things and nothing changed i looked around. thx for finally posting it though. (EDIT: what the heck was i on? i made no sense as)

PostPosted: 17. March 2004 11:33
by TheStormer
mhhh ... any solutions? irgendwelche Lösungen?

I'd the same problem, still: Call to undefined function: curl_init()

- edit php.ini
- copy the dll's to system32

Thanks for supporting!

Greets
TheStormer

PostPosted: 17. March 2004 11:37
by Kristian Marcroft
Hi,

I have it running here...
You problably got the wrong php.ini.
You need the one in /xampp/apache/bin

Works fine here, without installing anything extra.

So long
KriS

PostPosted: 17. March 2004 11:45
by TheStormer
Hit ... yes, after editing the third php.ini ;-) it works lovely.

Thanks-a-lot for the very quick answer!

Greets
TheStormer

PostPosted: 11. December 2006 11:38
by arya009
cornernote wrote:Hello,

After hours and hours of looking around I figured it out! YAY!

I was editing:
C:\xampp\php\php.ini

Then I looked at my phpinfo to see where the php.ini was loading from. Turns out it is here:
C:\xampp\apache\bin\php.ini

I feel so stupid but I will post incase someone else makes the same mistake.


Best regards,
Brett


Thanks...that works....apparantly i was also editing C:\xampp\php\php.ini but i was not checking with phpinfo :D

PostPosted: 31. December 2006 16:59
by harryatworld
thanks für die hilfreichen antworten, weil ohne diese hätte ich nicht weiter gewusst. Da die Anleitung bei cUrl mir nicht besonders weiter geholfen hatte.

Do I edit JUST the php.ini under C:\xampp\apache\bin\php.ini

PostPosted: 20. March 2007 20:05
by lostndazed
Or all php.ini files?

PostPosted: 15. July 2007 13:02
by mscand
cornernote

Your method for fixing cURL (i.e. editing the file in the apache/bin folder) worked for me too.

Thank you very much.

curl_init()

PostPosted: 28. December 2007 22:05
by shrg18
I got this error message:

Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\webbots\LIB_http.php on line 249

I have enabled curl in xampp\php\php.ini (extension=php_curl.dll at line 582). it works fine at command line, but not in localhost.

check the list, xampp\php\php -m , curl is among the list.

look at xampp\apache\bin\php.ini , there is none curl in the file and all extensions are uncommented. Is it the right file? where should I look and what should I do?

PostPosted: 29. December 2007 00:03
by sari42
...look at xampp\apache\bin\php.ini , there is none curl in the file and all extensions are uncommented. Is it the right file?
it is the right place (didn't you read this thread?)

;extension=php_curl.dll
just change it to
extension=php_curl.dll
(or add that line if it's missing) and restart apache.

____
p.s.
it's always clever to ask phpinfo(); for the location of the used php.ini

PostPosted: 29. December 2007 04:44
by shrg18
sari42 wrote:
...look at xampp\apache\bin\php.ini , there is none curl in the file and all extensions are uncommented. Is it the right file?
it is the right place (didn't you read this thread?)

;extension=php_curl.dll
just change it to
extension=php_curl.dll
(or add that line if it's missing) and restart apache.

____
p.s.
it's always clever to ask phpinfo(); for the location of the used php.ini


thank you. it is fixed.

I copied extension=php_curl.dll to xampp\apache\bin\php.ini and restart the windows. it works.

thanks