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

    <tfoot id='uq20e'></tfoot>

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

      PHP中的Mongodb连接不起作用

      Mongodb connection in PHP not working(PHP中的Mongodb连接不起作用)
    2. <i id='7pGhQ'><tr id='7pGhQ'><dt id='7pGhQ'><q id='7pGhQ'><span id='7pGhQ'><b id='7pGhQ'><form id='7pGhQ'><ins id='7pGhQ'></ins><ul id='7pGhQ'></ul><sub id='7pGhQ'></sub></form><legend id='7pGhQ'></legend><bdo id='7pGhQ'><pre id='7pGhQ'><center id='7pGhQ'></center></pre></bdo></b><th id='7pGhQ'></th></span></q></dt></tr></i><div id='7pGhQ'><tfoot id='7pGhQ'></tfoot><dl id='7pGhQ'><fieldset id='7pGhQ'></fieldset></dl></div>
        <tbody id='7pGhQ'></tbody>
        <bdo id='7pGhQ'></bdo><ul id='7pGhQ'></ul>

            1. <legend id='7pGhQ'><style id='7pGhQ'><dir id='7pGhQ'><q id='7pGhQ'></q></dir></style></legend>
              • <tfoot id='7pGhQ'></tfoot>
              • <small id='7pGhQ'></small><noframes id='7pGhQ'>

              • 本文介绍了PHP中的Mongodb连接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 Ubuntu 12.04 LTS 并在 /opt/lampp/bin/ 中安装了 pecl.

                I am using Ubuntu 12.04 LTS and installed pecl in /opt/lampp/bin/ .

                第二次安装时抛出错误-

                When installing second time its throwing error -

                之前运行的命令 -

                pecl install mongo

                pecl/mongo 已经安装,和发布的一样1.5.1版安装失败

                pecl/mongo is already installed and is the same as the released version 1.5.1 install failed

                现在当我检查时 -

                echo extension_loaded("mongo") ?"已加载 " : "未加载 ";

                echo extension_loaded("mongo") ? "loaded " : "not loaded ";

                显示未加载.

                但是我用 extension=mongo.so 更新了 php.ini 并重新启动了服务器,但它不起作用.

                However I updated the php.ini with extension=mongo.so and restarted the server, but its not working.

                现在让我看看我做错了什么.

                Let me now what I am doing wrong.

                编辑

                我重新实例化了命令,结果如下-

                I re instantiated the command and following is the outcome -

                Build process completed successfully
                Installing '/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so'
                install ok: channel://pecl.php.net/mongo-1.5.1
                configuration option "php_ini" is not set to php.ini location
                You should add "extension=mongo.so" to php.ini
                

                推荐答案

                终于在Neil Lunn的帮助下我做对了.

                Finally with the help of Neil Lunn I made it the right way.

                我添加了完整路径,并在我的 php.ini

                I added the full path and added the code at the very last line of my php.ini

                extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so"

                extension="/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525/mongo.so"

                这篇关于PHP中的Mongodb连接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 的问题)
                  <bdo id='iPNEq'></bdo><ul id='iPNEq'></ul>

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

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

                      • <tfoot id='iPNEq'></tfoot>

                        <legend id='iPNEq'><style id='iPNEq'><dir id='iPNEq'><q id='iPNEq'></q></dir></style></legend>