Php 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 more about Stack Overflow the company Business Learn
Xampp Curl Not Working
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags xampp curl enabled but not working Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, call to undefined function curl_init() ubuntu 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 get an error on my php application
How To Install Curl In Xampp On Windows 7
: 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 the php_curl.dll in xampp/php/ext with the downloaded dlls (each one of them
Call To Undefined Function Curl_init() Windows
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\bin\php.ini –caesardo Jun 20 '14 at 8:19 Are you sure that you have downloaded the correct version of curl - 32bit /
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta call to undefined function curl_init() linux Discuss the workings and policies of this site About Us Learn more
Install Curl On Localhost Xampp
about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack how to enable curl in xampp Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, http://stackoverflow.com/questions/24322698/call-to-undefined-function-curl-init-in-php-5-2-6-xampp-1-6-8-windows-server helping each other. Join them; it only takes a minute: Sign up Error in php using curl_init() up vote 0 down vote favorite 1 I'm completely newbie in PHP. I have tried example code from this site. but it gives following error: Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\g\test1.php on line 3 Am I missing something? http://stackoverflow.com/questions/6381655/error-in-php-using-curl-init It says undefined function curl_init() so where should I define it? Code:- php curl share|improve this question asked Jun 17 '11 at 5:23 Harry Joy 36.4k17117176 show your code please –Ibu Jun 17 '11 at 5:25 curl module is probably not enabled, enable it in your php.ini –tradyblix Jun 17 '11 at 5:26 @tradyblix: how to enable it? –Harry Joy Jun 17 '11 at 5:26 you should check if you have curl enabled in you phpinfo(); –Ibu Jun 17 '11 at 5:26 add a comment| 4 Answers 4 active oldest votes up vote 4 down vote accepted I assume you're using xampp as for your error shows it, locate php.ini in xampp directory probably located in C:\Program
to Jacob Bohall for this one! http://jakebohall.com "The problem?.. curl was not enabled by default in Xampp. You receive the following error: http://www.localwisdom.com/blog/2011/11/how-to-fix-curl-curl_init-error-on-xampp-install-on-windows/ Fatal error: Call to undefined function curl_init() 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 call to 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 curl on xampp by simply removing a few semicolons. Happy Coding!" call to undefined 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 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