gpt4 book ai didi

Windows 10 上的 PHP curl,PHP 5.6.17

转载 作者:行者123 更新时间:2023-12-03 23:17:14 24 4
gpt4 key购买 nike

有很多类似的主题,但没有解决我在 window 10 上的问题(在新计算机上,计算机完全干净)。

我在 Windows 10 上安装了带有 php 5.6.17 的 EasyPhp,干得好!=> curl_init() 不起作用

现在我想安装 curl。首先,在 php.ini 中我取消注释行“extension=php_curl.dll”(这是好的 php.ini,我在 phpinfo() 中看到路径),然后重新启动 Apache。=> curl_init() 不起作用

我在 Windows/system32 中添加了 libeay32.dll、libssh32.dll 和 ssleay32.dll。=> curl_init() 不起作用

在这一步,curl 在我的 windows 7 上完成了工作。

我在 Apache/bin 中添加了 libeay32.dll、libssh32.dll 和 ssleay32.dll。=> curl_init() 不起作用

我在 Windows/system32 中添加了 php_curl.dll。=> curl_init() 不起作用

我尝试 php_curl.dll 32 和 64。=> curl_init() 不起作用

我安装软件 OpenSSL(curl 需要 ssl)。=> curl_init() 不起作用

除“ fatal error :调用未定义的函数 curl_init()”外,我没有其他错误消息。 phpinfo() 从不显示 curl 模块。

我的解决方案用完了,知道吗?

最佳答案

我发现了一个问题(在解决这个问题一整天之后)。如果你遇到同样的问题,试试这个:

  • 打开命令提示符并转到您的 php 目录根目录
  • 执行:deplister.exe ext\php_curl.dll
  • 检查依赖

对我来说,文件 libssh32.dll 丢失了,但它在 Windows/system32 和 apache/bin 中。为了解决这个问题,我在路径窗口中添加了php目录,并将文件libssh32.dll复制到php目录中。

Source

关于Windows 10 上的 PHP curl,PHP 5.6.17,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34924926/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com