Fatal Error Call To Undefined Function Curl_init In
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 more about hiring ubuntu fatal error call to undefined function curl init developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Fatal Error Call To Undefined Function Curl Init Windows
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join fatal error call to undefined function curl init xampp them; it only takes a minute: Sign up Call to undefined function curl_init() [duplicate] up vote 7 down vote favorite 3 Possible Duplicate: curl_init() function not working I am using PHP for accessing the Foursquare API. I have set
Fatal Error Call To Undefined Function Curl Init Wamp
up everything for the authentication with Foursquare. But as soon as I click on the "Allow" button, my callback.php gives me the following error: Fatal error: Call to undefined function curl_init() in C:\wamp\www\EpiFoursquare.php on line 119 Call Stack Time Memory Function Location 0.0007 372592 {main}( ) ..\callback.php:0 0.0039 571896 EpiFoursquare->getAccessToken( ) ..\callback.php:17 0.0040 572928 EpiFoursquare->request( ) ..\EpiFoursquare.php:31 Where does this error come from? I cannot find the origin. Please help me out. php foursquare share|improve this question edited Apr fatal error call to undefined function curl init iis 19 '12 at 16:13 diewie 71437 asked Apr 19 '12 at 11:23 Adeel Kamal 66118 marked as duplicate by PiTheNumber, Jocelyn, Nikhil, Dharmendra, hims056 Oct 31 '12 at 4:44 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. 1 The issue has nothing to do with foursquare at all. Turn on curl module in php. "I just dont know, why it is originating." --- why don't you read error message then?! –zerkms Apr 19 '12 at 11:31 sir actually I am getting this error, it say "Fatal error: Call to undefined function curl_init() in C:\wamp\www\EpiFoursquare.php on line 119" and all the necessary files are placed in the folder, like callback.php, index.php, EpiCurl.php –Adeel Kamal Apr 19 '12 at 11:37 4 curl is a php extension nz.php.net/manual/en/curl.installation.php –zerkms Apr 19 '12 at 11:42 Thank a lot. It works :) –Adeel Kamal Apr 19 '12 at 11:52 check me then :-) –zerkms Apr 19 '12 at 11:55 | show 2 more comments 2 Answers 2 active oldest votes up vote 12 down vote You need to initialize the cURL extension: http://php.net/manual/en/curl.installation.php share|improve this answer edited Aug 29 '15 at 10:45 Eddie Hart 11911 answered Apr 19 '12 at 11:54 zerkms 148k33259325 I did this by enabling the php_curl.dll extension
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and
Call To Undefined Function Curl_init() Windows
policies of this site About Us Learn more about Stack Overflow the company
Call To Undefined Function Curl_init() In Codeigniter
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users call to undefined function curl_init() linux Badges Ask Question x Dismiss 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 http://stackoverflow.com/questions/10226983/call-to-undefined-function-curl-init minute: Sign up Call to undefined function curl_init() even it is enabled in php7 up vote 4 down vote favorite I've just installed php7 to my Ubuntu. At first, there was no problem, my web site was working. But suddenly, it started to return Call to undefined function curl_init() error. Now, my pages contain curl codes do not work. In phpinfo(), http://stackoverflow.com/questions/34842596/call-to-undefined-function-curl-init-even-it-is-enabled-in-php7 it looks Curl is enabled. There were similar questions but none of them handled it in php7. I thought it should be something different than others. Edit: When I try php -i | grep curl in terminal, it returns /etc/php/7.0/cli/conf.d/20-curl.ini, curl php ubuntu curl share|improve this question edited Jan 17 at 22:13 asked Jan 17 at 19:23 Sab 455 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote accepted I've had similar problem with curl after upgrade to XX (16.04). After reinstalling curl with: sudo apt-get install php-curl And server restart sudo service apache2 restart everything went back to normal :) share|improve this answer answered Apr 29 at 9:56 Deus777 590713 Correct. Tricky one as it worked on a CLI script! –Sydwell Oct 6 at 20:44 add a comment| up vote 0 down vote Your pages probably are not generated with the CLI SAPI. Check what phpinfo() returns when run from your webserver (its probably trying to read the wrong ini file). share|improve this answer answered Jan 17 at 22:24 symcbean 34.4k42662 Loaded configuratio
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 more about http://stackoverflow.com/questions/14724661/fatal-error-call-to-undefined-function-curl-init-using-batch-file hiring developers or posting 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 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() using Batch File up vote 0 down vote favorite I have a PHP that downloads files from backend. I am using WAMP in call to Windows 7 and it works perfectly when done through the browser. Now I have created a batch file to execute the php and it shows: Fatal error: Call to undefined function curl_init() Not sure why something that could work over in browser is not working in batch file. Below is my code for the batch file: @ECHO OFF php.exe -f "C:\wamp\www\test\test.php" Any idea what's the issue? php curl share|improve this question edited Feb 6 '13 at 8:38 KingCrunch 71.1k12105139 call to undefined asked Feb 6 '13 at 8:33 aandroidtest 42831545 1 Check the php.ini for your cli environment. –j0k Feb 6 '13 at 8:37 install php curl library... –Deadlock Feb 6 '13 at 8:42 add a comment| 4 Answers 4 active oldest votes up vote 3 down vote accepted uncomment the following on your php.ini ;extension=php_curl.dll and restart webserver. This might be due to curl disabled in your php. share|improve this answer answered Feb 6 '13 at 8:42 user7282 2,84232350 add a comment| up vote 2 down vote When you use wamp, xamp or other all-in-one server, it uses an overrided php.ini located into bin/conf/ instead where original is. You need copy from these or edit the ini located at php.exe folder. If you cant access it (shared server, etc), you can create a custom php.ini file into script folder, and put needed instructions: extension_dir = "c:/wamp/bin/php/php5.3.5/ext/" // change version if needed to yours extension = php_curl.dll share|improve this answer answered Jun 15 '13 at 0:30 erm3nda 761619 add a comment| up vote 0 down vote When using through browser it is using WAMP and the PHP ini is from C:\wamp\bin\php\php5.4.3 But I have set my php directory to C:\php-5.4.9 in environmental variables, thus when using windows batch it is calling php from that directory and there was no php.ini file there. I copied the PHP ini file from wamp to p