php_curl.dll libssh2.dll 始终无法加载的原因 及解决办法

简介: 在StackOverflow得到最终原因及解决办法 http://stackoverflow.com/questions/16424117/php-unable-to-load-php-curl-dll-extension libeay32.

 

在StackOverflow得到最终原因及解决办法

http://stackoverflow.com/questions/16424117/php-unable-to-load-php-curl-dll-extension

libeay32.dll and ssleay32.dll have to be path-accessible for php_curl.dll loading to succeed. Copying them into System32 (or even into the Windows main directory) is a bad hack and does not even work with newer PHP versions.

The right way to do it is to add the PHP path to the Windows Path variable. In Control Panel -> System click on Advanced System Settings and use the button Environment Variables. UnderSystem Variables you will find the Path variable. Edit it and append ;C:\PHP to it - or whatever the path to your PHP folder is. Then restart Apache.

 

就是在环境变量里面添加PHP的路径。

相关文章
|
PHP 数据安全/隐私保护
php base64不能解码_PHP base64编码后解码乱码的解决办法
php base64不能解码_PHP base64编码后解码乱码的解决办法
362 0
|
安全 PHP Windows
Atom 编辑器 atom-beautify 美化 php 遇到的问题及解决办法
Atom 编辑器 atom-beautify 美化 php 遇到的问题及解决办法
|
关系型数据库 MySQL PHP
PHP连接MySQL 8.0报错的解决办法
PHP连接MySQL 8.0报错的解决办法
351 0
|
关系型数据库 MySQL PHP
PHP连接MySQL 8.0报错的解决办法
PHP连接MySQL 8.0报错的解决办法
|
Shell PHP
安装Appnode面板使用php命令时bash: php :command not found问题所在及解决办法
安装Appnode面板使用php命令时bash: php :command not found问题所在及解决办法
|
PHP API 网络安全
php中curl返回false的解决办法
本文介绍一下自己在使用curl中遇到的问题解决办法。希望可以帮助到大家。 原文地址:代码汇个人博客 http://www.codehui.net/info/37.html 首先来看一个封装的curl函数 function request_post($url = '', $param = '').
2384 0