我正在尝试将 stripe 集成到我的 PHP 项目中,但在本地主机上出现此错误:
Fatal error: Uncaught Error: Call to undefined function curl_version() in [...]
我在 PHP 7
中使用 easyphp,在我的 php.in 行中 extension=php_curl.dll
没有注释。
编辑: 我正在查看 apache 的错误日志,我有这个:
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.
错在哪里?我能做些什么来解决它?谢谢
最佳答案
尝试以下
- Copy libssh2.dll from PHP directory to Windows/system directory
- In php.ini #zend_extension remove (;) front row ;extension=php_curl.dll
- Restart the Apache server.
关于php - fatal error : Uncaught Error: Call to undefined function curl_version() - Localhost Dev,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60413930/