cURL is not working .. please help
Posted by: thatsme (---.sify.net)
Date: July 24, 2007 07:41PM

Hi,

I have WAMP 1.7.2 on Windows XP Prof, I have tried using cURL (curl) in my coding but it is giving error like this:

Fatal error: Call to undefined function curl_init()

I have enabled php_curl from php extensions, restared all services (even system too) but all the time I get same error.

Please help...!


Options: ReplyQuote
Re: cURL is not working .. please help
Posted by: CyberSpatium (71.237.217.---)
Date: July 24, 2007 07:47PM

php comes with support for curl disabled by default. you need to edit your php.ini file to enable it.

open:
c:\wamp\apache2\bin\php.ini

find:
;extension=php_curl.dll

remove the simicolon in front to enable support for curl:
extension=php_curl.dll

save the file and restart apache for the new setting to take effect.



CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote
Re: cURL is not working .. please help
Posted by: vnaresh_kumar (---.kareltek.fi)
Date: August 07, 2007 02:22PM

i got the same problem, jst make sure which php.ini file the server is using wamp/apache2/bin/php.ini or wamp/php/php.ini and in which file u r making the changes(uncommenting the curl extension)



Post Edited (08-07-07 14:35)

Options: ReplyQuote
Re: cURL is not working .. please help
Posted by: thatsme (---.sify.net)
Date: August 07, 2007 02:55PM

There is one more php.ini under wamp folder, find that fine and remove semicolon before following syntax:

;extension=php_curl.dll

Options: ReplyQuote
Re: cURL is not working .. please help
Posted by: yfastud (72.236.169.---)
Date: August 07, 2007 04:12PM

Access php.ini through wamp tray icon will get the right file, and the most important is to RESTART wamp server to take effect.

Have fun,

[www.jlbn.net] (Basic Guide for WAMP)

Options: ReplyQuote
Re: cURL is not working .. please help
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: August 07, 2007 11:25PM

there is only one php.ini file that apache uses, and that is located at c:\wamp\apache2\bin\php.ini


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote


Sorry, only registered users may post in this forum.