Php Fatal Error Call To Undefined Function Curl_init Windows 7
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 fatal error call to undefined function curl_init() in wamp Overflow the company Business Learn more about hiring developers or posting ads with us Stack call to undefined function curl_init() in codeigniter Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community call to undefined function curl_init() ubuntu of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Call to undefined function curl_init() error in wamp 2.2 up vote 29 down vote favorite 9 I
Call To Undefined Function Curl_init() Linux
am having below error when I try to implement google and facebook authentication in windows 7 using wamp server. Fatal error: Call to undefined function curl_init() in E:\wamp\www\mysite\protected\extensions\eauth\EAuthServiceBase.php on line 273 I am using, wampserver 2.2 php version 5.3.13 I have enabled php_curl module as well. I checked in php.ini for confirm and it is uncommented as below. ;extension=php_bz2.dll extension=php_curl.dll ;extension=php_dba.dll The code has worked in ubuntu with xampp, but not call to undefined function curl_init() in php in wamp in windows. I have done everything I can find. I have tried replacing the php_curl.dll also according to the comment on this thread, Call to undefined function curl_init() - with WAMP My phpinfo() looks like below. I have installed wamp in the partition E:\, but the "Configuration File (php.ini) Path" seems different, it is C:\Windows. Please help me to fix the issue. php curl wamp wampserver share|improve this question edited Sep 12 '12 at 3:55 asked Sep 12 '12 at 3:04 Shakeel 2181412 phpinfo() and check that you've modified the right config file –zerkms Sep 12 '12 at 3:06 have you started the php_curl extension –NullPoiиteя Sep 12 '12 at 3:07 @zerkms: thanks for your comment, I have checked again the loaded configuration file is correct and php_curl is un-commented already –Shakeel Sep 12 '12 at 3:48 @RegisteredUser: Thanks for the comment, yes I have enbaled and started the php_curl extension. –Shakeel Sep 12 '12 at 3:49 what is the extension dir set to in php.ini? –Tim G Sep 12 '12 at 5:01 | show 1 more comment 8 Answers 8 active oldest votes up vote 63 down vote accepted Visit this and have a file under Fixed curl extensions: http://www.anindya.com/php-5-
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 php fatal error call to undefined function curl_init() linux Stack Overflow the company Business Learn more about hiring developers or posting ads with
Fatal Error Call To Undefined Function Curl_init() In Xampp
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is
E: Unable To Locate Package Php5-curl
a community of 6.2 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 … on line 9 up vote http://stackoverflow.com/questions/12380670/call-to-undefined-function-curl-init-error-in-wamp-2-2 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 Imgur API, but it doesn't seems to work. http://stackoverflow.com/questions/4396779/fatal-error-call-to-undefined-function-curl-init-in-on-line-9 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,65611835 asked Dec 9 '10 at 9:44 Thew 4,777153783 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 restart It's possible you'll need to install more: sudo apt-get install curl libcurl3 libcurl3-dev; share|improve this answ
any website in Windows or Linux (Ubuntu) like: Fatal error: Call to undefined function curl_init() then here is a simple and easy solution, for http://www.webtechquery.com/index.php/2010/03/fatal-error-call-to-undefined-function-curl_init-windows-and-linux-ubuntu/ both Windows and Linux (Ubuntu) users. For Windows If you are having the error Call to undefined function curl_init() in Windows, then you have to simply modify a line in apache's php.ini file. Goto your wamp folder, which would be like: D:\wamp\bin\apache\apache2.2.6\bin\ And open the file php.ini If you are unbable to find the folder of file call to as mentioned above, or if you are using some other server in Windows, then simply find the php.ini file located under apache folder (and not php folder), and open it in a text editor. Find the text extension=php_curl.dll and remove the semi-colon at the start. Now that line would look like: extension=php_curl.dll (without semi-colon on start) Save the call to undefined file, and restart your Apache Server. And the problem is solved. For Ubuntu (Linux) If you are having the error Call to undefined function curl_init() in Ubuntu or Linux, then you have to simply install php5-curl to make this problem resolved. Simply goto: System -> Administration -> Synaptic Package Manager And find the package or software as “php5-curl“ or php curl and install the CURL module for PHP. After successful installation, restart your Apache Server with the following command: sudo /etc/init.d/apache2 restart And the problem is solved. Or Or goto gnome-terminal, and write the following command: sudo apt-get install php5-curl (if php5 is not the latest php version, then find the latest php curl package and install it) After successful installation, restart your Apache Server with the following command: sudo /etc/init.d/apache2 restart And the problem is solved. Related posts: Install PHP, MySQL and Apache (LAMP) on Ubuntu (Linux) PHP Tweets for Twitter Windows XP License Key on behalf of Windows Vista or Windows 7 License Key You don't have permission to acc