?php / / suppose your stored procedure info.output returns a ref cursor in :data $conn = OCILogon( "scott" ,"tiger"); $curs = OCINewCursor($conn); $stmt = OCIParse($conn ,"begin info.output(:data); end ;"); ocibindbyname($stmt ,"data", $curs,-1,OCI_B_CURSOR); ociexecute($stmt); ociexecute($curs); while (OCIFetchInto($curs, $data)) {var_dump($data);} OCIFreeStatement($stmt); OCIFreeCursor($curs); OCILogoff($conn);?
?php / / supposons que votre procédure stoquée info.output retourne un pointeur / / de curseur dans: data $conn = ociLogon( "scott" ,"tiger"); $curs = ociNewCursor($conn); $stmt = ociparse($conn ,"begin info.output(:data); end ;"); ocibindbyname($stmt ,"data", $curs,-1,oci_B_CURSOR); ociexecute($stmt); ociexecute($curs); while (ociFetchInto($curs, $data)) {var_dump($data);} ociFreeStatement($curs); ociFreeCursor($stmt); ociLogoff($conn);?