Fatal Error Call To Undefined Function Curl_init Xampp Windows
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 xampp curl not working site About Us Learn more about Stack Overflow the company Business Learn more
Xampp Curl Enabled But Not Working
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss how to install curl in xampp on windows 7 Join the Stack Overflow Community 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 call to undefined function curl_init() ubuntu curl in xampp up vote 4 down 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
Call To Undefined Function Curl_init() Windows
know if any I shall be very thankful to you all php 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
here for a quick overview of the site Help Center Detailed answers to any questions you install curl on localhost xampp might have Meta Discuss the workings and policies of this site call to undefined function curl_init() linux About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
How To Enable Curl In Xampp
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 http://stackoverflow.com/questions/5418262/how-to-enable-curl-in-xampp million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal error: Call to undefined function curl_init() in … on line 9 up vote 36 down vote favorite 8 http://stackoverflow.com/questions/4396779/fatal-error-call-to-undefined-function-curl-init-in-on-line-9 = array('image' => base64_encode($data), 'key' => IMGUR_API_KEY); $timeout = 30; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://api.imgur.com/2/upload.xml'); curl_setopt($curl, CURLOPT_TIMEOUT, $timeout); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $pvars); $xml = curl_exec($curl); curl_close ($curl); var_dump($xml); ?> I'm playing with the Imgur API, but it doesn't seems to work. PHP.net says that curl_init() is in PHP5, but my host says it isn't. How can I make this work? php linux ubuntu curl debian share|improve this question edited Nov 3 '14 at 21:04 austin 4,64611835 asked Dec 9 '10 at 9:44 Thew 4,747153783 add a comment| 6 Answers 6 active oldest votes up vote 30 down vote accepted curl is an extension that needs to be installed, it's got nothing to do with the PHP version. http://www.php.net/manual/en/curl.setup.php share|improve this answer answered Dec 9 '10 at 9:46 fire 12.6k104695 +1 And if you can't install the curl extension, you can try using shell_exec (or similar) with the curl command. Or you can probably "
to Jacob Bohall for this one! http://jakebohall.com "The problem?.. curl was not enabled by default in Xampp. You receive the following error: Fatal error: Call to undefined function curl_init() http://www.localwisdom.com/blog/2011/11/how-to-fix-curl-curl_init-error-on-xampp-install-on-windows/ 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 C:xamppphpphp4php4.ini Step 3. Find the following code in each of the files, and remove the ; (semicolon) at the beginning of call to 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 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 call to undefined 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 work C:xamppapachebinphp.ini C:xamppphpphp.ini you must have enable extension=php_curl.dll from these two files Reply Alexandre Dias View May 6, 2013 Thank's my friend! Work to me! Reply Related Articles By Melissa Penta Create a CSS-only Menu Icon By Michael Alfaro innersvg - SVG elements mobile safari do not work with HTML using D3 .html() Work Products People Blog Contact Careers Facebook Twitter LinkedIn Google+