Fatal Error Call To Undefined Function Curl_init Php
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 call to undefined function curl_init() windows Learn more about Stack Overflow the company Business Learn more about hiring developers call to undefined function curl_init() in codeigniter or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack
Call To Undefined Function Curl_init() Linux
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()
Call To Undefined Function Curl_init() Wamp
in … 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 call to undefined function curl_init() in php 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. Any better resources? –matteo Oct 21 '14 at 12:01 add a comment| Did you find this question interesting? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Subscribed! Success! Please click the link in the confirmation email to ac
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
Php7 Curl_init
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs what is curl_init() in php Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, call to undefined function curl_init() php 7 just like you, helping each other. Join them; it only takes a 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 http://stackoverflow.com/questions/4396779/fatal-error-call-to-undefined-function-curl-init-in-on-line-9 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(), 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 http://stackoverflow.com/questions/34842596/call-to-undefined-function-curl-init-even-it-is-enabled-in-php7 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 configuration file is: /etc/php/7.0/apache2/php.ini Loaded config directory is: /etc/php/7.0/apache2/conf.d And all of these files are OK. There is a 20-curl.ini file in conf.d folder. So, what am I doing wrong? –Sab Jan 17 at 22:26 Are you saying via the web sapi it did not load /etc/php/7.0/apache2/conf.d/20-curl.ini ? Suggest you review those files and the apache error_log. –symcbean Jan 17 at 22:32 add a comment| up vote 0 down vote Your Filepath is p
Du siehst YouTube auf Deutsch. Du kannst diese Einstellung unten ändern. Learn more You're viewing YouTube in German. You can change this preference https://www.youtube.com/watch?v=7qNTi1sEfE8 below. Schließen Ja, ich möchte sie behalten Rückgängig machen Schließen Dieses Video ist nicht verfügbar. WiedergabelisteWarteschlangeWiedergabelisteWarteschlange Alle entfernenBeenden Wird geladen... Wiedergabeliste Warteschlange __count__/__total__ fatal error: call to undefined function curl_init() WAMP Tuto Maker AbonnierenAbonniertAbo beenden5.9445 Tsd. Wird geladen... Wird geladen... Wird verarbeitet... Hinzufügen Möchtest du dieses Video später noch call to einmal ansehen? Wenn du bei YouTube angemeldet bist, kannst du dieses Video zu einer Playlist hinzufügen. Anmelden Teilen Mehr Melden Möchtest du dieses Video melden? Melde dich an, um unangemessene Inhalte zu melden. Anmelden Transkript Statistik 13.025 Aufrufe 36 Dieses Video gefällt dir? Melde dich bei YouTube an, call to undefined damit dein Feedback gezählt wird. Anmelden 37 2 Dieses Video gefällt dir nicht? Melde dich bei YouTube an, damit dein Feedback gezählt wird. Anmelden 3 Wird geladen... Wird geladen... Transkript Das interaktive Transkript konnte nicht geladen werden. Wird geladen... Wird geladen... Die Bewertungsfunktion ist nach Ausleihen des Videos verfügbar. Diese Funktion ist zurzeit nicht verfügbar. Bitte versuche es später erneut. Veröffentlicht am 23.05.2013Site web : http://www.yt-stats.comfatal error: call to undefined function curl_init()1) activer curl dans les options2) rechercher curl et verifier si activer3) telecharger dll curl ici : http://www.anindya.com/php-5-4-3-and-...4) mettre deux dll : ssleay32.dll and libeay32.dll are in Windows/system32.5) mettre php_curl.dll into Windows\System32 Kategorie Bildung Lizenz Standard-YouTube-Lizenz Mehr anzeigen Weniger anzeigen Wird geladen... Anzeige Autoplay Wenn Autoplay aktiviert ist, wird die Wiedergabe automatisch mit einem der aktuellen Videovorschläge fortgesetzt. Nächstes Video Enabling Curl for Wamp's PHP on Windows 7 - Dauer: 3:52 WebE