I am writing a simple PHP script to see if I can make a connection to my Oracle database. And it showed that my call to OCILogon() failed. But
my call to OCIError() returned "False", which I believe meant to be "no
error found".
I wonder if you could please help me get additional information as to why
my call to OCILogon() failed? My code is below.
Thank you and Best Regards,
Akino
================================================== =======
Code :
====
Expand|Select|Wrap|Line Numbers
- <?php
- echo "Connecting...<br/>";
- $c = OCILogon("abc123", "abc123", "testDB");
- if ($c == false) {
- $err = OCIError();
- if ($err == false)
- echo "No error found.<br/>";
- else
- echo "Oracle Connect Error " . $err[code] . $err[message] . "<br/>";
- }
- else {
- echo "Successfully connected to testDB<br/>";
- OCILogoff($c);
- }
- echo "Exiting...<br/>";
- ?>
=====
Connecting...
No error found.
Exiting...