Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Uncaught Error: Call to undefined function curl_version() - Localhost Dev

Tags:

php

curl

easyphp

I'm trying to integrate stripe on my PHP project but I have this error on localhost:

Fatal error: Uncaught Error: Call to undefined function curl_version() in [...] 

I'm using easyphp with PHP 7 and in my php.in the line extension=php_curl.dll is uncommented.

EDIT: i'm looking at error log of apache and i've this:

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files (x86)\\EasyPHP-Devserver-17\\eds-binaries\\php\\php713vc14x86x190923224900\\ext\\php_curl.dll' - The specified module could not be found.

Where is the error? What I can do to fix it? thanks

like image 464
komm Avatar asked Dec 05 '25 05:12

komm


1 Answers

Try following

  1. Copy libssh2.dll from PHP directory to Windows/system directory
  2. In php.ini #zend_extension remove (;) front row ;extension=php_curl.dll
  3. Restart the Apache server.
like image 164
Shashank Shah Avatar answered Dec 07 '25 20:12

Shashank Shah