I have been up and down this board and all over google trying to figure out what could possibly be wrong. I have set all possible environmental variables, tried placing the tns string into the db name, basically everything that is typically suggested. But no matter what I try I can not connect to oracle.
Originally I was receiving a ocilogon error with no number, it only showed [][], now I'm not even receiving an error. It just won't connect. Here is what I'm using in an attemp to connect.
if ($db_con=ocilogon($DB_USER, $DB_PASS, $DB_NAME)) {
echo "Successfully connected to Oracle.\n";
ocilogoff($db_conn);
} else {
echo "Oracle Connect Error " . ocierror();
die();
}
I have php_oci8.dll uncommented within php.ini. I have six environmental variables.
ORACLE_HOME
LD_LIBRARY_PATH
NLS_LANG
ORA_NLS33
ORACLE_SID
TNS_ADMIN
Any help is appreciated.