Sample PHP connection string from Ben Roesch
Nov 15,2007 22:29
Ben offered this example up for PHP
access to the Oracle database from orchestra.
$conn = OCILogon("guest","secret","testdb.world") or die("Couldn't connect");
$query = "select user from dual";
$stmt = ociparse($conn, $query);
OCIDefineByName($stmt, "USER", $u);
ociexecute($stmt, OCI_DEFAULT);
ocifetch($stmt);
echo "The user is: $u";
ocilogoff($conn);