Reputation:
I am trying to make a connection from PHP Version 5.5.27 to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Downloaded instant client version 11.2.0.3.0 and linked it in system's PATH variable
Also I have enabled extension=php_oci8.dll in my php.ini
but still not working, I get this error:
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\xampp\htdocs\test.php on line 3
Upvotes: 2
Views: 661
Reputation: 74
Here is the step-by-step procedure that helped me connecting Oracle with PHP:
Windows/System32
folder.C:
php_oci8
.php_oci8_11g
C:
.C:\instantclient_11_2
.wamp/www
folderoci_connect('username', 'password', 'localhost/service name')
.Upvotes: 1