Hey
From your program i figure out that you have a stored procedure call and this procedure has some in, some out variables. You need to approach in the folllwing way
Say on Oracle
Library.GetLoginWebRights(UserID IN NUMBER,
WebPass IN VARCHAR2, WebRights OUT VARCHAR2);
Your PHP code should follow the below
$c = OCILogon($dbUser, $dbPass,$db);
$StoredProc = "begin library.GetLoginWebRights($UserID, '".$WebPass."', :WebRights); end;";
$s = OCIParse($c,$StoredProc);
OCIBindByName($s,":WebRights", &$WebRights, 200); // check manual for the explanation for this.
OCIFreeStatement($s);
OCILogoff($c);
Now you can access your returned variable $WebRights.
I hope i answered your question
OCIExecute($s);