• <legend id='7IsKb'><style id='7IsKb'><dir id='7IsKb'><q id='7IsKb'></q></dir></style></legend>

    <small id='7IsKb'></small><noframes id='7IsKb'>

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

      1. <tfoot id='7IsKb'></tfoot>

        PHP 解释器使用 ADODB 获取未定义的常量 OCI_COMMIT_ON_SUCCESS

        PHP interpreter gets undefined constant OCI_COMMIT_ON_SUCCESS with ADODB(PHP 解释器使用 ADODB 获取未定义的常量 OCI_COMMIT_ON_SUCCESS)
        <tfoot id='HYTOu'></tfoot>

      2. <legend id='HYTOu'><style id='HYTOu'><dir id='HYTOu'><q id='HYTOu'></q></dir></style></legend>

          <tbody id='HYTOu'></tbody>

              <bdo id='HYTOu'></bdo><ul id='HYTOu'></ul>

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

                  <i id='HYTOu'><tr id='HYTOu'><dt id='HYTOu'><q id='HYTOu'><span id='HYTOu'><b id='HYTOu'><form id='HYTOu'><ins id='HYTOu'></ins><ul id='HYTOu'></ul><sub id='HYTOu'></sub></form><legend id='HYTOu'></legend><bdo id='HYTOu'><pre id='HYTOu'><center id='HYTOu'></center></pre></bdo></b><th id='HYTOu'></th></span></q></dt></tr></i><div id='HYTOu'><tfoot id='HYTOu'></tfoot><dl id='HYTOu'><fieldset id='HYTOu'></fieldset></dl></div>
                  本文介绍了PHP 解释器使用 ADODB 获取未定义的常量 OCI_COMMIT_ON_SUCCESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述


                  我写了一个必须在 php 解释器(没有 Apache)上运行的 php 脚本,它使用带有 Oracle 数据库的 adodb 库,但是当我尝试运行它时,出现以下错误:


                  I wrote a php script that must be run on the php interpreter (Without Apache), which uses the adodb library with an Oracle database, but when I try to run it, I'm getting the following error:

                  PHP Notice:  Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS' in c:proyectackendlibrariesadodbadodb.inc.php on line 4248
                  


                  我已经检查过,并且启用了 php_oci8 和 php_oci8_11g,因此应该定义常量.此外,当我使用 Apache 运行此脚本时,它可以正常工作.


                  I've checked, and have both the php_oci8 and php_oci8_11g enabled, so the constant SHOULD be defined. Also, when I run this script WITH Apache, it works without any problems.

                  提前致谢!

                  推荐答案

                  经过快速搜索,我找到了 本页.如果您的 php.ini 中没有启用 oracle 扩展,则该常量未定义.尝试搜索该行

                  After a quick search I found this page. If you don't have the oracle extension enabled in your php.ini then the constant is undefined. Try searching for the line

                  ;extension=php_oci8.dll
                  

                  在你的 php.ini 中删除分号以取消注释.然后重启Apache加载模块,看是否连接.

                  in your php.ini and remove the semicolon to uncomment it. Then, restart Apache to load the module and see if it connects.

                  尝试通过执行诸如 print_r(ini_get_all()) 之类的操作来转储 php.ini 变量,然后查看已设置和未设置的内容.您可能在命令行中使用了不同的 php.ini.

                  Try dumping the php.ini variables by doing something like print_r(ini_get_all()) and see what is set and what isn't. You may be using a different php.ini for the command line.

                  这篇关于PHP 解释器使用 ADODB 获取未定义的常量 OCI_COMMIT_ON_SUCCESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                  PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                  Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                  Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                  What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                  default as first option in switch statement?(默认为 switch 语句中的第一个选项?)
                    <tbody id='V0NVC'></tbody>
                  <i id='V0NVC'><tr id='V0NVC'><dt id='V0NVC'><q id='V0NVC'><span id='V0NVC'><b id='V0NVC'><form id='V0NVC'><ins id='V0NVC'></ins><ul id='V0NVC'></ul><sub id='V0NVC'></sub></form><legend id='V0NVC'></legend><bdo id='V0NVC'><pre id='V0NVC'><center id='V0NVC'></center></pre></bdo></b><th id='V0NVC'></th></span></q></dt></tr></i><div id='V0NVC'><tfoot id='V0NVC'></tfoot><dl id='V0NVC'><fieldset id='V0NVC'></fieldset></dl></div>

                  • <tfoot id='V0NVC'></tfoot>
                        <bdo id='V0NVC'></bdo><ul id='V0NVC'></ul>
                          <legend id='V0NVC'><style id='V0NVC'><dir id='V0NVC'><q id='V0NVC'></q></dir></style></legend>

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