Hi Doug,
This works for me..
putenv("ORACLE_SID=MYINSTANCE");
$uid = "MYUSERID";
$pwd = "MYUSERPASSWD";
$inst = "MYINSTANCE";
$conn = ocilogon($uid,$pwd,"$inst");
if(!$conn):
echo "unable to connect to database";
ocilogoff($conn);
endif;
$query= "alter session set NLS_DATE_FORMAT = 'DD-MON-Y
Am I blind? Or is there no support with the regular oracle functions to connect to a
database that is hosted on another machine?
The manual has this:
$conn = Ora_Logon(username, password);
but I don't see anywhere to put the host string.
- Doug Schasteen