OCI Connect issue on Windows Server 2012 with PHP version 5.6.14

OCI Connect

Based on the foregoing, it says that you should avoid connecting OCI in Windows. Has anyone configured it on Windows? I went through all the other topics, this and this , using Windows Server 2012 with PHP 5.6 and Oracle 11g, but still the problem:

Call undefined function oci_connect ()

I have the path set : c:/instantclient_12_1

In php.ini you can see:

extension = php_oci8.dll
extension = php_oci8_11g.dll

and under / php / ext

there is only a file: php_oci8_12c.dll

This is the output of phpinfo () to display the 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\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo" 

What is the cause of undefined function oci_connect() error?

0
source share
1 answer

Try using the following:

 extension=php_oci8_12c.dll 

in your php.ini, in my case (Windows Server 2008, PHP 5.6), which helped.

0
source

Source: https://habr.com/ru/post/1216094/


All Articles