Nie's Home
2012年11月2日星期五
Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS'
安装完wampServer,然后勾选了oci8.dll,codeigniter还是不能启动,报错Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS',如下图
使用oci_connect方法的时候会报找不到这个方法的错误
在默认环境变量里面能找到如下dll
有如下解决方法(三选一)
下载并Oracle客户端,Oracle会自动在path里面加入D:\app\niehonglei\product\11.2.0\client_1\bin;
下载instantclient,然后在path里面把instantclient路径加进去;
下载instantclient,将其中的dll拷贝到C:\Windows\System32目录里面;
较新的博文
较早的博文
主页