Fatal Error Curl_init
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 php curl init Learn more about Stack Overflow the company Business Learn more about hiring developers or curl init undefined posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow curl easy init 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() in
Curl Global Init
… on line 9 up vote 36 down vote favorite 8 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 curl multi init 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. Any better resources? –matteo Oct 21 '14 at 12:01 add a comment| up vote 89 down vote On current versions of Debian and Ubuntu, you can likely solve this by installing the Curl extension for PHP, and restarting the webserver. Assuming the webserver is Apache 2: sudo apt-get install php5-curl sudo service apache2 res
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss fatal error call to undefined function curl_init() wamp the workings and policies of this site About Us Learn more about
Call To Undefined Function Curl_init() Windows
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow
Call To Undefined Function Curl_init() In Codeigniter
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 http://stackoverflow.com/questions/4396779/fatal-error-call-to-undefined-function-curl-init-in-on-line-9 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 Foursquare. But as soon as I click on the "Allow" button, my http://stackoverflow.com/questions/10226983/call-to-undefined-function-curl-init 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?! –zerkms Apr 19 '12 at 11:31 sir actually I am getting this error, it say "Fatal error: Call to undefined function curl
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://stackoverflow.com/questions/12593883/how-to-remove-fatal-error-call-to-undefined-function-curl-init Discuss the workings and 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, call to helping each other. Join them; it only takes a minute: Sign up how to remove Fatal error: Call to undefined function curl_init() up vote 1 down vote favorite I am having following error on using curlas extension Fatal error: Call to undefined function curl_init() in C:\wamp\www***\index.php on line 15 I have following configuration ;extension=php_bz2.dll extension=php_curl.dll ;extension=php_dba.dll i call to undefined installed wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-x64.exe i tried to enable other extension also and restarted server but they local host is not able to load that extension. php wampserver share|improve this question edited Jun 26 '13 at 11:27 Aditya P Bhatt 9,009145785 asked Sep 26 '12 at 2:46 Kasma 1,17341524 Are those extension directives really all on one line? If so, it is invalid (and commented out anyway) –Michael Berkowski Sep 26 '12 at 2:51 1 Also, be sure you are modifying the correct php.ini. Check the output of phpinfo() to see which php.ini file is being loaded, and load the extension in that one. –Michael Berkowski Sep 26 '12 at 2:52 Are you trying to load a page through a browser on your local machine, or execute a script via command-line? –newfurniturey Sep 26 '12 at 2:55 @MichaelBerkowski not in single line...it was in stackoverflow code... another thing , yes i verified all available php.ini... although i corrected ini which was refernced in phpinfo() –Kasma Sep