Fatal Error Call To Undefined Function Curl_init In C
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you call to undefined function curl_init() ubuntu might have Meta Discuss the workings and policies of this site
Call To Undefined Function Curl_init() In Php
About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting call to undefined function curl_init() windows 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
Call To Undefined Function Curl_init() Wamp
million programmers, just like you, helping each other. Join 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 up everything for the authentication with call to undefined function curl_init() in codeigniter 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 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?! &
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Call To Undefined Function Curl_init() Linux
the workings and policies of this site About Us Learn more about
Sudo Apt-get Install Php5-curl
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions php7 curl_init 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. http://stackoverflow.com/questions/10226983/call-to-undefined-function-curl-init 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 base64_encode($data), 'key' => IMGUR_API_KEY); $timeout = 30; $curl = http://stackoverflow.com/questions/4396779/fatal-error-call-to-undefined-function-curl-init-in-on-line-9 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 "fake it" with fsockopen. –bogeymin Dec 9 '10 at 11:54 2 That page doesn't say a word about HOW TO install the extension. A
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/29838649/call-to-undefined-function-curl-init-error policies of this site About Us Learn more about Stack Overflow the company Business Learn more about 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 call to takes a minute: Sign up Call to undefined function curl_init() error up vote 2 down vote favorite I am on a Win 64 bit OS, php 5.6.8 using Eclipse PDT to develop PHP. I have come across this Call to undefined function curl_init() error. I removed the ; preceeding extension=php_curl.dll in php.ini .Restarted the Apache server but still getting the same call to undefined error. Any hint where I am going wrong? php php-curl share|improve this question edited Sep 24 at 14:43 vaxquis 5,79452541 asked Apr 24 '15 at 4:21 saurav 1,06751637 1 The IDE is not related. You can always check the extension status by phpinfo() function. –Raptor Apr 24 '15 at 4:23 1 php.ini exists in multiple places, did you edit the one that phpinfo() says its using? –Robbie Averill Apr 24 '15 at 4:27 thanks a lot folks for your replies...i found that my ext dir was not set in php.ini ...so php_curl.dll was not loading up .i also had to install libssh2.dll –saurav Apr 24 '15 at 4:37 I have same problem @saurav =( –Florida Jun 11 '15 at 4:22 1 @Florida please check your ext dir property in php.ini file whether it is properly to the extension directory –saurav Jun 11 '15 at 4:37 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote I had the same issue and after hours, I found a message here : http://php.net/manual/curl