Problem with binding php 5 on Apache 2 on Windows 7 to Oracl
Posted: Wed Dec 01, 2010 4:55 am
Hello, I'm tring to use oci_connect() function, but get error:
I unzipped Instant Client to "C:\instantclient_11_2" and updated system PATH. I'm uncommented
line in php.ini file, and rebooted web server.
This is Configuring Command from phpinfo():
I see that path in --with-oci8 is incorrect, but I don't know where I change it, and whether it is what I need to do.
Also there is no string "OCI8 Support enabled" in phpinfo output.
Is there some solution?
PHP Fatal error: Call to undefined function oci_connect() in ...
I unzipped Instant Client to "C:\instantclient_11_2" and updated system PATH. I'm uncommented
extension=php_oci8.dll
line in php.ini file, and rebooted web server.
This is Configuring Command from phpinfo():
cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"
I see that path in --with-oci8 is incorrect, but I don't know where I change it, and whether it is what I need to do.
Also there is no string "OCI8 Support enabled" in phpinfo output.
Is there some solution?