PHP4.0.3 & ORACLE 8.0.5 & WINNT4.0

admin

Administrator
Staff member
it was a hard work and thanks a lot for the help here in this forum. I've got a problem connecting to Oracle by the tnsnames. I'm running PHP4 as CGI and it seemed there was no way to connect to a remote database. so what i do:

$dbname = "(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = xxxx))
(CONNECT_DATA = (SID = xxxx))
)";

$conn = OCILogon("user","psw",$dbname);

print "Server Version: " . OCIServerVersion($conn);

OCILogOff($conn);

well! it worked!!!!!!!!!

;-)
 
Back
Top