Fatal Error Call To Undefined Function Curl_init Xampp
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn xampp curl not working more about Stack Overflow the company Business Learn more about hiring developers or posting
Xampp Curl Enabled But Not Working
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
How To Install Curl In Xampp On Windows 7
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up how to enable curl in xampp up vote 4 down
Call To Undefined Function Curl_init() Ubuntu
vote favorite I am facing this error given below Fatal error: Call to undefined function curl_init() in E:\xampp\htdocs\new\functions.php on line 11 I have already made change in php.ini. I have removed the semicolon in front of ;extension=php_crack.dll extension=php_curl.dll ;extension=php_cvsclient.dll and after that restart the xampp but still facing same problem.Is there any other change need.Please let me know if any I shall be very thankful to you all php call to undefined function curl_init() windows xampp share|improve this question edited Mar 24 '11 at 11:27 mauris 26.2k1065115 asked Mar 24 '11 at 11:18 Chauhan 53561838 Did you do a phpinfo? That change, if done in the right ini file is enough. –Alin Purcaru Mar 24 '11 at 11:22 Run a phpinfo(); in a separate page and tell us if you can locate a "curl" paragraph. If you don't find it, you have a php configuration issue. –Rodolphe Mar 24 '11 at 11:24 I have run phpinfo(); but not able to find out –Chauhan Mar 24 '11 at 11:26 add a comment| 9 Answers 9 active oldest votes up vote 8 down vote If you are using XAMPP, check these two locations: C:\xampp\xampplite\apache\bin\php.ini C:\xampp\xampplite\php\php.ini For the line ;extension=php_curl.dll. Remove the semicolon, save both files, restart your Apache and then run it again. I hope it will work. share|improve this answer edited Feb 17 '12 at 18:59 tomlogic 7,06121650 answered Feb 17 '12 at 10:50 Shakir 8912 add a comment| up vote 4 down vote In Xampp i've found php.ini at this location: C:\xampp\php\php.ini I've removed ";" from ";extension=php_curl.dll" line. It works fine. share|improve this answer edited Mar 29 '12 at 17:48 arrowd 13.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow install curl on localhost xampp the company Business Learn more about hiring developers or posting ads with us Stack Overflow call to undefined function curl_init() linux Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 how to enable curl in xampp million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function curl_init in php 5.2.6 XAMPP 1.6.8 Windows Server up vote 0 down vote favorite I http://stackoverflow.com/questions/5418262/how-to-enable-curl-in-xampp get an error on my php application : Fatal error: Call to undefined function curl_init() I have searched everywhere for the answer and trust me I've done every solution given but still failed to overcome this problem. By far I've tried several solutions such as : Removing the comment ";" in php.ini before the extension=php_curl.dll and then restart the server Go to http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ and download the fixed curl extensions there and replace http://stackoverflow.com/questions/24322698/call-to-undefined-function-curl-init-in-php-5-2-6-xampp-1-6-8-windows-server the php_curl.dll in xampp/php/ext with the downloaded dlls (each one of them one by one) and then restart the server Change the extension=php_curl.dll to extension="C:\Xampp\php\ext\php_curl.dll" and then restart the server All the solutions just didn't work for my case. I think the server runs the older version of XAMPP and PHP (XaMPP 1.6.8 with PHP 5.2.6), is it the source of my problem? I definitely desperate for some help, for I already tried all the solutions provided in the similar questions in stackoverflow (trust me, there's a lot of em) and still I couldn't get the answer to my problem. So please dont rush yourself from labeling this post as a duplicate, cause I tried just almost all of em. Your help will be much appreciated, thank you. php apache curl xampp share|improve this question asked Jun 20 '14 at 8:05 caesardo 7311 Are you sure that you change the correct php.ini file? You need to find which php configuration file apache is loading. Also try the phpinfo(); function to see if the curl extension is loaded. –Athafoud Jun 20 '14 at 8:14 yes i've tried the phpinfo() and I changed the corresponding php.ini file which was shown on the "Loaded configuration file" section which is in my case located in C:\XAMPP\apache\
to Jacob Bohall for this one! http://jakebohall.com "The problem?.. curl was not enabled by default in Xampp. You http://www.localwisdom.com/blog/2011/11/how-to-fix-curl-curl_init-error-on-xampp-install-on-windows/ receive the following error: Fatal error: Call to undefined function curl_init() https://forums.phpfreaks.com/topic/157819-solved-problem-with-curl-init-fatal-error/ in C:xampphtdocstaysttwitterindex.php on line 4 The solution? These simple steps! Step 1. Stop all Xampp services: Apache, Mysql, Filezilla, and Mercury. Step 2. Open the following files in your editor of choice. (Replace C:xampp with the location of your xampp install) C:xamppapachebinphp.ini C:xamppphpphp.ini C:xamppphpphp5.ini C:xamppphpphp4php.ini call to C:xamppphpphp4php4.ini Step 3. Find the following code in each of the files, and remove the ; (semicolon) at the beginning of the line. You will most likely see it at line 546 or line 582. old line – ;extension=php_curl.dll new line – extension=php_curl.dll Step 4. Start your apache services. See what an easy fix to call to undefined curl on xampp by simply removing a few semicolons. Happy Coding!" Open Comments Logging In... Profile cancel Sign in with Twitter Sign in with Facebook or CommentName EmailNot published Website 7 Replies 7 Comments 0 Tweets 0 Facebook 0 Pingbacks Last reply was May 6, 2013 Rinku View June 15, 2012 Not working your info . Reply Michael Alfaroreplied: View June 15, 2012 Hi Rinku, Could you give any clues as to what's not working about it? I ran this on a few machines and it worked for me. Thanks, Mike Reply ROCKESH RONITH View August 16, 2012 hello…. how can we solve this kind of problems….if we are using ucrl_init()…….can you suggest to me………..?? Reply Michael Alfaroreplied: View August 16, 2012 Did the directions in the post not help? Reply Mayur Gheidya View September 30, 2012 Thank you, i am facing this problem last 5 days. thank your very match.now it's working fine, Reply Muhammad Ejaz Hnaif View December 6, 2012 nice
Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. [SOLVED] problem with curl_init() -- fatal error!! Started by stevieontario, May 12 2009 01:49 PM Please log in to reply 13 replies to this topic #1 stevieontario stevieontario Advanced Member Members 105 posts Posted 12 May 2009 - 01:49 PM Morning php Freaks: I'm playing in a sandbox (xampp) and testing some code (php 5.2. containing the function curl_init. A very rudimentary version of my web app is running, successfully, using curl_init() at one point. But when I test my code in my test environment using the identical function, I get the following error: Fatal error: Call to undefined function curl_init() in C:\Program Files\xampp\htdocs\dev\Functions1.php on line 100 Anybody have any ideas what's going on? Thanks! Back to top #2 Maq Maq Advanced Member Administrators 9,406 posts LocationPennsylvania, USA Posted 12 May 2009 - 01:59 PM Can we see the relevant code? tjmothy ini_set ("display_errors", "1"); error_reporting(E_ALL); Back to top #3 redarrow redarrow Advanced Member Members 7,145 posts Locationlondon Posted 12 May 2009 - 02:02 PM curl not loaded cheek. Wish i new all about php DAM i will have to learn ((EMAIL CODE THAT WORKS))http://simpleforum.ath.cx/mail2.inc((PAYPAL INTEGRATION THAT WORKS))http://simpleforum.a...aypal1_info.inc Back to top #4 GingerRobot GingerRobot Advanced Member Staff Alumni 4,086 posts LocationUK Posted 12 May 2009 - 02:03 PM This probably means the cURL library is not installed. If you run a page with just this in: You'll be able to verify this. If you cannot find a section called curl/libcurl, then it is not installed. Back to top #5 stevieontario stevieontario Advanced Member Members 105 posts Posted 12 May 2009 - 02:04 PM Thanks maq. Here's the relevant code: function curl_string($url,$user_agent,$proxy=0) {