<bdo id='SnU0S'></bdo><ul id='SnU0S'></ul>
    1. <small id='SnU0S'></small><noframes id='SnU0S'>

      <i id='SnU0S'><tr id='SnU0S'><dt id='SnU0S'><q id='SnU0S'><span id='SnU0S'><b id='SnU0S'><form id='SnU0S'><ins id='SnU0S'></ins><ul id='SnU0S'></ul><sub id='SnU0S'></sub></form><legend id='SnU0S'></legend><bdo id='SnU0S'><pre id='SnU0S'><center id='SnU0S'></center></pre></bdo></b><th id='SnU0S'></th></span></q></dt></tr></i><div id='SnU0S'><tfoot id='SnU0S'></tfoot><dl id='SnU0S'><fieldset id='SnU0S'></fieldset></dl></div>
      <tfoot id='SnU0S'></tfoot>

        <legend id='SnU0S'><style id='SnU0S'><dir id='SnU0S'><q id='SnU0S'></q></dir></style></legend>
      1. PHP致命错误:找不到类'AMQPConnection'

        PHP Fatal error: Class #39;AMQPConnection#39; not found(PHP致命错误:找不到类AMQPConnection)
        <legend id='WPDFU'><style id='WPDFU'><dir id='WPDFU'><q id='WPDFU'></q></dir></style></legend>
            • <bdo id='WPDFU'></bdo><ul id='WPDFU'></ul>

                <small id='WPDFU'></small><noframes id='WPDFU'>

                  <tbody id='WPDFU'></tbody>
                <i id='WPDFU'><tr id='WPDFU'><dt id='WPDFU'><q id='WPDFU'><span id='WPDFU'><b id='WPDFU'><form id='WPDFU'><ins id='WPDFU'></ins><ul id='WPDFU'></ul><sub id='WPDFU'></sub></form><legend id='WPDFU'></legend><bdo id='WPDFU'><pre id='WPDFU'><center id='WPDFU'></center></pre></bdo></b><th id='WPDFU'></th></span></q></dt></tr></i><div id='WPDFU'><tfoot id='WPDFU'></tfoot><dl id='WPDFU'><fieldset id='WPDFU'></fieldset></dl></div>
                <tfoot id='WPDFU'></tfoot>
                1. 本文介绍了PHP致命错误:找不到类'AMQPConnection'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经看过这个问题.它表明未安装 AMQP PECL 扩展.但是,我已经成功安装了 RabbitMQ 以及构建的 PECL AMQP 扩展.以下是phpinfo()的输出.

                  I've already seen this question. It suggests that AMQP PECL extension is not installed. However, I have successfully installed both RabbitMQ as well as built PECL AMQP extension. The following is the output of the phpinfo().

                  可以清楚地看到,AMQP 加载正确.但是,当我尝试建立连接时,它显示 PHP 致命错误:找不到类 'AMQPConnection'.下面是代码.

                  You can clearly see, AMQP is loaded correctly. However, when I try to establish a connection, it says PHP Fatal error: Class 'AMQPConnection' not found. Below is the code.

                  $connection = new AMQPConnection();
                  

                  这是输出.

                  user@ubuntu:~$ php repos/default/test.php
                  PHP Fatal error:  Class 'AMQPConnection' not found in /home/user/repos/default/test.php on line 5
                  

                  为什么会发生这种情况?有什么建议?谢谢.

                  Why this might happen? Any suggestions? Thank you.

                  推荐答案

                  问题很可能是 CLI 安装使用了与 web/Apache 模块不同的 php.ini 文件,您需要在 CLI php 中添加扩展.ini 文件也是如此.具体在哪里取决于您的平台.

                  The problem is most likely that the CLI installation uses a different php.ini file than the web/Apache module and you need to add the extension to the CLI php.ini file as well. Where exactly that is depends on your platform.

                  这篇关于PHP致命错误:找不到类'AMQPConnection'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  <i id='OcJLR'><tr id='OcJLR'><dt id='OcJLR'><q id='OcJLR'><span id='OcJLR'><b id='OcJLR'><form id='OcJLR'><ins id='OcJLR'></ins><ul id='OcJLR'></ul><sub id='OcJLR'></sub></form><legend id='OcJLR'></legend><bdo id='OcJLR'><pre id='OcJLR'><center id='OcJLR'></center></pre></bdo></b><th id='OcJLR'></th></span></q></dt></tr></i><div id='OcJLR'><tfoot id='OcJLR'></tfoot><dl id='OcJLR'><fieldset id='OcJLR'></fieldset></dl></div>
                      • <bdo id='OcJLR'></bdo><ul id='OcJLR'></ul>
                          <tbody id='OcJLR'></tbody>
                      • <legend id='OcJLR'><style id='OcJLR'><dir id='OcJLR'><q id='OcJLR'></q></dir></style></legend>

                            <small id='OcJLR'></small><noframes id='OcJLR'>

                            <tfoot id='OcJLR'></tfoot>