PHP,oci驱动程序

时间:2015-04-15 07:20:02

标签: php oci

我想启用与oracle db的连接,但我所做的一切都不起作用:

我的phpinfo()没有显示oci8的单独部分,但在phpinfo开始时有

Architecture    x86
Configure Command   cscript /nologo configure.js "--enable-snapshot-build"
"--disable-isapi"
"--enable-debug-pack"
"--without-mssql"
"--without-pdo-mssql"
"--without-pi3web"
"--with-pdo-oci=C:\php-sdk\oracle\x86\instantclient10\sdk,shared"
"--with-oci8=C:\php-sdk\oracle\x86\instantclient10\sdk,shared"
"--with-oci8-11g=C:\php-sdk\oracle\x86\instantclient11\sdk,shared"
"--enable-object-out-dir=../obj/"
"--enable-com-dotnet=shared"
"--with-mcrypt=static"
"--disable-static-analyze"
"--with-pgo"

我已经下载了instantclient 11_2和修改后的窗口path,最后添加了C:\xampp\oracle_driver\php.ini,如下所示:

extension=php_pdo_oci.dll
extension=php_oci8.dll
extension=php_oci8_11g.dll

0 个答案:

没有答案