Problem with binding php 5 on Apache 2 on Windows 7 to Oracl

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
rodnower
Forum Newbie
Posts: 2
Joined: Wed Dec 01, 2010 4:49 am

Problem with binding php 5 on Apache 2 on Windows 7 to Oracl

Post by rodnower »

Hello, I'm tring to use oci_connect() function, but get error:

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?
rodnower
Forum Newbie
Posts: 2
Joined: Wed Dec 01, 2010 4:49 am

Re: Problem with binding php 5 on Apache 2 on Windows 7 to O

Post by rodnower »

The solution was to define: extension_dir in php.ini
Post Reply