<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连接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                datetime to timestamp(日期时间到时间戳)
                PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)
                  <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>