gpt4 book ai didi

curl - 在 PHP 7 windows 10 64 位 Apache 2.4 上启用 cURL

转载 作者:行者123 更新时间:2023-12-04 02:32:35 27 4
gpt4 key购买 nike

我在用
Windows10 64位
Apache 2.4.25 (Win64)
PHP 7.1.0-Win32-VC14-x64

当我尝试调用 curl_init() 函数时,我收到一条错误消息“调用未定义函数 curl_init()”
试过以下

  • 将 ssleay32.dll & libeay32.dll & php7ts.dll 复制到 apache/bin 文件夹
  • 正确设置路径以包含上述文件“C:/PHP;”

  • 非常感谢任何帮助。

    最佳答案

    我在 Acquia 的开发桌面上遇到了同样的问题,将 libcrypto-1_1-x64.dll 和 libssl-1_1-x64.dll 从 PHP7.3 文件夹复制到 Apache/bin 文件夹为我解决了这个问题。
    “从 1.1.0 版开始,OpenSSL 确实更改了它们的库名称!
    libeay32.dll 现在是 libcrypto-.dll(例如 libcrypto-1_1-x64.dll 用于 64 位 Windows 上的 OpenSSL 1.1.x)
    ssleay32.dll 现在是 libssl-.dll(例如 libssl-1_1-x64.dll 用于 64 位 Windows 上的 OpenSSL 1.1.x)”

  • epos_jk

  • https://www.php.net/manual/en/curl.installation.php#121921 .

    关于curl - 在 PHP 7 windows 10 64 位 Apache 2.4 上启用 cURL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41820953/

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