Unable to connect to Oracle db through oci_connect in PHP
Posted: 25. July 2016 07:50
Hi
I have installed XAMPP (xampp-win32-5.5.37-0-VC11-installer) in our machine for Oracle Database connection through PHP file.
Apache is running fine. I am trying to browse http://localhost/test/test.php for phpinfo. It is also working fine.
But when I am trying to connect Oracle database it is showing following warning error:
Error message “Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries inC:\xampp\htdocs\test\connect1.php on line 5”.
Kindly suggest me for further development.
Machine Details:
1. OS: Windows 7 [32 bit] with Service pack1
2. ORACLE Database Version 11.2.0.2.0
I have installed XAMPP (xampp-win32-5.5.37-0-VC11-installer) in our machine for Oracle Database connection through PHP file.
Apache is running fine. I am trying to browse http://localhost/test/test.php for phpinfo. It is also working fine.
But when I am trying to connect Oracle database it is showing following warning error:
Error message “Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries inC:\xampp\htdocs\test\connect1.php on line 5”.
Kindly suggest me for further development.
Machine Details:
1. OS: Windows 7 [32 bit] with Service pack1
2. ORACLE Database Version 11.2.0.2.0