wamp 服务器 php 扩展 PECL 缺失

发布于 2024-10-05 18:24:15 字数 164 浏览 0 评论 0原文

有谁知道为什么 wamp 服务器中的 PECL 扩展不存在?

我正在尝试使用 http_build_url() 但我收到此错误:

致命错误:调用...中未定义的函数 http_build_url()

Does any one know why the PECL extension in wamp server does not exists?

I am trying to use the http_build_url()
but I get this error:

Fatal error: Call to undefined function http_build_url() in ...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

心安伴我暖 2024-10-12 18:24:15

函数 http_build_url() 是 PECL 扩展 pecl_http 的一部分。

在 WAMP 目录中找到 pecl.exe 并打开命令 shell。输入:pecl install pecl_http 并且函数调用应该可以工作。

The function http_build_url() is part of the PECL extension pecl_http.

In your WAMP directory locate pecl.exe and open a command shell. Type: pecl install pecl_http and the function call should work.

镜花水月 2024-10-12 18:24:15

我找到了 pecl_http 包的来源,但不知道如何使其在 wamp 上工作,因为那里没有 .dll 文件。

http://pecl.php.net/package/pecl_http

i have found this source of pecl_http package, but dont know how to make it work on wamp as there is no .dll file in there.

http://pecl.php.net/package/pecl_http

她比我温柔 2024-10-12 18:24:15

这个问题现在已经很老了,所以如果您想要使用 wamp 2.2 的 pecl,请单击 wamp 图标,将鼠标悬停在 php->php 扩展上,并确保 php_http 旁边有一个复选标记。这样做为我启用了 pecl。

This question is old now, so if you want pecl with wamp 2.2, click on the wamp icon, hover over php->php extensions and make sure that php_http has a checkmark next to it. Doing this enabled pecl for me.

夜访吸血鬼 2024-10-12 18:24:15

我正在使用 WAMPServer (x64) 和 PHP5.6.25 &我想安装“Blesta”,要求需要“Pecl - Mailparse”,所以:

  1. 我下载“PHP Mailparse v2.1.6 (PHP v5.6)(Thread Safe)(vc11)(x64)”

  2. 我将下载文件解压到“C:\wamp64\bin\php\php5.6.25\ext ” ”
    文件夹

  3. 我将“extension=php_mailparse.dll”添加到文件中
    “C:\wamp64\bin\php\php5.6.25\phpForApache.ini”但在末尾
    “动态扩展”
  4. 重新启动 WAMPServer
  5. 安装“Blesta”

注意 #3 示例:

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

extension=php_mailparse.dll

I'm using WAMPServer (x64) with PHP5.6.25 & I want to install "Blesta", the requirements need "Pecl - Mailparse", So:

  1. I download "PHP Mailparse v2.1.6 (PHP v5.6)(Thread Safe)(vc11)(x64)"

  2. I extract the download file in "C:\wamp64\bin\php\php5.6.25\ext"
    folder

  3. I add "extension=php_mailparse.dll" to file
    "C:\wamp64\bin\php\php5.6.25\phpForApache.ini" but at the end of
    "Dynamic Extensions"
  4. Restart the WAMPServer
  5. Install "Blesta"

Note for #3 Example:

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

extension=php_mailparse.dll
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文