cvs: phpdoc /fr/functions oci8.xml
| From: | Damien Seguy | Date: | Wed, 18 Jul 2001 13:47:22 +0000 |
| Subject: | cvs: phpdoc /fr/functions oci8.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969336302@lists.php.net to get a copy of this message | ||
dams Wed Jul 18 09:47:22 2001 EDT
Modified files:
/phpdoc/fr/functions oci8.xml
Log:
Added ocicancel and ocisetprefetch
Index: phpdoc/fr/functions/oci8.xml diff -u phpdoc/fr/functions/oci8.xml:1.12 phpdoc/fr/functions/oci8.xml:1.13 --- phpdoc/fr/functions/oci8.xml:1.12 Sat Jul 7 18:22:17 2001 +++ phpdoc/fr/functions/oci8.xml Wed Jul 18 09:47:22 2001 @@ -1,10 +1,10 @@ <reference id="ref.oci8"> <title>Oracle 8</title> - <titleabbrev>OCI8</titleabbrev> + <titleabbrev>oci8</titleabbrev> <partintro> <para> Ces fonctions vous permettront d'accéder aux serveurs Oracle8 et - Oracle7. Elles utilisent l'interface Oracle8 Call-Interface (OCI8). + Oracle7. Elles utilisent l'interface Oracle8 Call-Interface (oci8). Vous aurez donc besoin des librairies clientes Oracle8 pour pouvoir les utiliser. </para> @@ -16,7 +16,7 @@ d'utiliser des variables de définitions personnalisables. </para> <para> - Avant d'utiliser cette extension, assurez vous que vous avez bien + Avant d'utiliser cette extension, assurez-vous que vous avez bien paramétré vos variables d'environnement Oracle, ainsi que votre démon utilisateur. Les variables dont vous pouvez avoir besoin sont : <itemizedlist> @@ -54,7 +54,7 @@ </para> <para> Après avoir configuré ces variables pour votre utilisateur "serveur - web", assurez vous aussi d'ajouter cet utilisateur (nobody, www) + web", assurez-vous aussi d'ajouter cet utilisateur (nobody, www) au group Oracle. </para> <note> @@ -91,25 +91,27 @@ </programlisting> </informalexample> </para> - </note> <para> + </note> + <para> <example> - <title>Aide OCI</title> + <title>Aide oci</title> <programlisting role="php"> <?php // par sergo@bacup.ru -// Utilisez l'option : OCI_DEFAULT pour éxécuter les commandes avec un délai -OCIExecute($stmt, OCI_DEFAULT); +// Utilisez l'option : oci_DEFAULT pour éxécuter les commandes avec un délai +ociExecute($stmt, oci_DEFAULT); // pour lire les données après lecture, utilisez : -$result = OCIResult($stmt, $n); +$result = ociResult($stmt, $n); if (is_object ($result)) $result = $result->load(); // Pour les commandes INSERT ou UPDATE utilisez: $sql = "insert into table (field1, field2) values (field1 = 'value', field2 = empty_clob()) returning field2 into :field2"; -OCIParse($conn, $sql); -$clob = OCINewDescriptor($conn, OCI_D_LOB); -OCIBindByName ($stmt, ":field2", &$clob, -1, OCI_B_CLOB); -OCIExecute($stmt, OCI_DEFAULT); -$clob->save ("some text"); +ociparse($conn, $sql); +$clob = ociNewDescriptor($conn, oci_D_LOB); +ociBindByName ($stmt, ":field2", &$clob, -1, oci_B_CLOB); +ociexecute($stmt, oci_DEFAULT); +$clob->save ("Du texte"); +ocicommit($conn); ?> </programlisting> </example> @@ -122,15 +124,15 @@ <programlisting role="php"> <?php // par webmaster@remoterealty.com -$sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', +$sth = ociparse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', '$lastname', '$company', '$address1', '$address2', '$city', '$state', '$postalcode', '$country', :error_code );end;" ); // Ce script appelle la procédure stockée sp_newaddress, avec address_id qui est // une variable entrante/sortante et :error_code une variable sortante. // Lorsque vous les liez : - OCIBindByName ( $sth, ":address_id", $addr_id, 10 ); - OCIBindByName ( $sth, ":error_code", $errorcode, 10 ); - OCIExecute ( $sth ); + ociBindByName ( $sth, ":address_id", $addr_id, 10 ); + ociBindByName ( $sth, ":error_code", $errorcode, 10 ); + ociExecute ( $sth ); ?> </programlisting> </example> @@ -138,7 +140,7 @@ </partintro> <refentry id="function.ocidefinebyname"> <refnamediv> - <refname>OCIDefineByName</refname> + <refname>ociDefineByName</refname> <refpurpose> Utilise une variable PHP pour la phase de définition, dans une commande SELECT. </refpurpose> @@ -169,25 +171,25 @@ Si vous avez besoin de définir un type de données abstrait, tel que (LOB/ROWID/BFILE), vous devez lui allouer la mémoire avec <function>ocinewdescriptor</function>. - Reportez vous aussi à <function>ocibindbyname</function>. + Reportez-vous aussi à <function>ocibindbyname</function>. </para> <example> - <title>OCIDefineByName</title> + <title>ociDefineByName</title> <programlisting role="php"> <?php -/* Exemple OCIDefineByPos par thies@thieso.net (980219) */ -$conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"select empno, ename from emp"); +/* Exemple ociDefineByPos par thies@thieso.net (980219) */ +$conn = ociLogon("scott","tiger"); +$stmt = ociparse($conn,"select empno, ename from emp"); /* La définition DOIT être faîte AVANT ociexecute! */ -OCIDefineByName($stmt,"EMPNO",&$empno); -OCIDefineByName($stmt,"ENAME",&$ename); -OCIExecute($stmt); -while (OCIFetch($stmt)) { +ociDefineByName($stmt,"EMPNO",&$empno); +ociDefineByName($stmt,"ENAME",&$ename); +ociexecute($stmt); +while (ociFetch($stmt)) { echo "empno:".$empno."\n"; echo "ename:".$ename."\n"; } -OCIFreeStatement($stmt); -OCILogoff($conn); +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -195,7 +197,7 @@ </refentry> <refentry id="function.ocibindbyname"> <refnamediv> - <refname>OCIBindByName</refname> + <refname>ociBindByName</refname> <refpurpose> Utilise une variable PHP pour la phase de définition, dans un SELECT. </refpurpose> @@ -232,49 +234,49 @@ devrait être fixée à -1. La variable <parameter>type</parameter> indique au serveur Oracle, quel type de pointeur va être utilisé. Les valeurs possibles sont : - OCI_B_FILE (Fichier binaires), OCI_B_CFILE (Fichier texte), - OCI_B_CLOB (LOB- texte), OCI_B_BLOB (LOB binaire) - et OCI_B_ROWID (ROWID). + oci_B_FILE (Fichier binaires), oci_B_CFILE (Fichier texte), + oci_B_CLOB (LOB- texte), oci_B_BLOB (LOB binaire) + et oci_B_ROWID (ROWID). </para> <example> - <title>OCIDefineByName</title> + <title>ociDefineByName</title> <programlisting role="php"> <?php -/* Exemple OCIBindByPos par thies@thieso.net (980221) +/* Exemple ociBindByPos par thies@thieso.net (980221) Insère 3 lignes dans emp, et utilise ROWID pour mettre à jour les lignes, juste après l'insertion. */ -$conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"insert into emp (empno, ename) ". +$conn = ociLogon("scott","tiger"); +$stmt = ociparse($conn,"insert into emp (empno, ename) ". "values (:empno,:ename) ". "returning ROWID into :rid"); $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim"); -$rowid = OCINewDescriptor($conn,OCI_D_ROWID); -OCIBindByName($stmt,":empno",&$empno,32); -OCIBindByName($stmt,":ename",&$ename,32); -OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID); -$update = OCIParse($conn,"update emp set sal = :sal where ROWID = :rid"); -OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID); -OCIBindByName($update,":sal",&$sal,32); +$rowid = ociNewDescriptor($conn,oci_D_ROWID); +ociBindByName($stmt,":empno",&$empno,32); +ociBindByName($stmt,":ename",&$ename,32); +ociBindByName($stmt,":rid",&$rowid,-1,oci_B_ROWID); +$update = ociparse($conn,"update emp set sal = :sal where ROWID = :rid"); +ociBindByName($update,":rid",&$rowid,-1,oci_B_ROWID); +ociBindByName($update,":sal",&$sal,32); $sal = 10000; while (list($empno,$ename) = each($data)) { - OCIExecute($stmt); - OCIExecute($update); + ociexecute($stmt); + ociexecute($update); } $rowid->free(); -OCIFreeStatement($update); -OCIFreeStatement($stmt); -$stmt = OCIParse($conn,"select * from emp where empno in (1111,2222,3333)"); -OCIExecute($stmt); -while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) { +ociFreeStatement($update); +ociFreeStatement($stmt); +$stmt = ociparse($conn,"select * from emp where empno in (1111,2222,3333)"); +ociexecute($stmt); +while (ociFetchInto($stmt,&$arr,oci_ASSOC)) { var_dump($arr); } -OCIFreeStatement($stmt); +ociFreeStatement($stmt); /* Effacement des lignes inutiles dans la table emp .... */ -$stmt = OCIParse($conn,"delete from emp where empno in (1111,2222,3333)"); -OCIExecute($stmt); -OCIFreeStatement($stmt); -OCILogoff($conn); +$stmt = ociparse($conn,"delete from emp where empno in (1111,2222,3333)"); +ociexecute($stmt); +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -282,7 +284,7 @@ </refentry> <refentry id="function.ocilogon"> <refnamediv> - <refname>OCILogon</refname> + <refname>ociLogon</refname> <refpurpose>Etablit une connexion à un serveur Oracle.</refpurpose> </refnamediv> <refsect1> @@ -299,7 +301,7 @@ </funcsynopsis> <para> <function>ocilogon</function> retourne un identifiant de connexion, - nécessaire à la plus part des fonctions OCI. Si l'option + nécessaire à la plupart des fonctions oci. Si l'option ORACLE_SID n'est pas précisée, PHP utilisera la variable d'environnement ORACLE_SID pour déterminer le serveur de connexion. </para> @@ -313,7 +315,7 @@ <para> Cet exemple montre comment les connexions sont partagées : <example> - <title>OCILogon</title> + <title>ociLogon</title> <programlisting role="php"> <?php print "<HTML><PRE>"; @@ -333,12 +335,12 @@ } function insert_data($conn) { $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." inserted hallo\n\n"; } function delete_data($conn) { $stmt = ociparse($conn,"delete from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." deleted hallo\n\n"; } function commit($conn) @@ -351,7 +353,7 @@ } function select_data($conn) { $stmt = ociparse($conn,"select * from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) echo $conn." <".ociresult($stmt,"TEST").">\n\n"; @@ -387,7 +389,7 @@ </refentry> <refentry id="function.ociplogon"> <refnamediv> - <refname>OCIPLogon</refname> + <refname>ociPLogon</refname> <refpurpose>Connection persistante à un serveur Oracle.</refpurpose> </refnamediv> <refsect1> @@ -415,7 +417,7 @@ </refsect1></refentry> <refentry id="function.ocinlogon"> <refnamediv> - <refname>OCINLogon</refname> + <refname>ociNLogon</refname> <refpurpose> Se connecte à un serveur Oracle avec une nouvelle connexion. </refpurpose> @@ -451,10 +453,10 @@ ne s'appliquent qu'à la connexion spécifée. </para> <para> - L'exemple ci dessous montre l'utilisation des connexions + L'exemple ci-dessous montre l'utilisation des connexions séparées. <example> - <title>OCINLogon</title> + <title>ociNLogon</title> <programlisting role="php"> <?php print "<HTML><PRE>"; @@ -474,12 +476,12 @@ } function insert_data($conn) { $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." inserted hallo\n\n"; } function delete_data($conn) { $stmt = ociparse($conn,"delete from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." deleted hallo\n\n"; } function commit($conn) @@ -492,7 +494,7 @@ } function select_data($conn) { $stmt = ociparse($conn,"select * from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) echo $conn." <".ociresult($stmt,"TEST").">\n\n"; @@ -528,8 +530,8 @@ </refentry> <refentry id="function.ocilogoff"> <refnamediv> - <refname>OCILogOff</refname> - <refpurpose>Déconnection d'un serveur Oracle </refpurpose> + <refname>ociLogOff</refname> + <refpurpose>Déconnexion d'un serveur Oracle </refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -546,7 +548,7 @@ </refentry> <refentry id="function.ociexecute"> <refnamediv> - <refname>OCIExecute</refname> + <refname>ociexecute</refname> <refpurpose>Exécute une commande </refpurpose> </refnamediv> <refsect1> @@ -565,14 +567,14 @@ déjà préparée (voir <function>ociparse</function>). L'option <parameter>mode</parameter> vous permet de spécifier le mode d'exécution (par défaut, - il est à OCI_COMMIT_ON_SUCCESS). Si vous ne voulez pas que la - commande soit automatiquement validée, utilisez le mode OCI_DEFAULT. + il est à oci_COMMIT_ON_SUCCESS). Si vous ne voulez pas que la + commande soit automatiquement validée, utilisez le mode oci_DEFAULT. </para> </refsect1> </refentry> <refentry id="function.ocicommit"> <refnamediv> - <refname>OCICommit</refname> + <refname>ociCommit</refname> <refpurpose>Valide les transactions en cours.</refpurpose> </refnamediv> <refsect1> @@ -591,7 +593,7 @@ </refentry> <refentry id="function.ocirollback"> <refnamediv> - <refname>OCIRollback</refname> + <refname>ociRollback</refname> <refpurpose>Annule les transactions en cours </refpurpose> </refnamediv> <refsect1> @@ -610,7 +612,7 @@ </refentry> <refentry id="function.ocinewdescriptor"> <refnamediv> - <refname>OCINewDescriptor</refname> + <refname>ociNewDescriptor</refname> <refpurpose>Initialise un nouveau pointeur vide de LOB/FILE</refpurpose> </refnamediv> <refsect1> @@ -628,37 +630,37 @@ <function>ocinewdescriptor</function> alloue l'espace nécessaire pour stocker un descripteur, ou un pointeur de LOB. Les valeurs acceptées pour type sont - OCI_D_FILE, OCI_D_LOB et OCI_D_ROWID. + oci_D_FILE, oci_D_LOB et oci_D_ROWID. </para> <example> - <title>OCINewDescriptor</title> + <title>ociNewDescriptor</title> <programlisting role="php"> <?php /* Ce script est fait pour être appelé dans un formulaire HTML * Il attends les variables $user, $password, $table, $where, et $commitsize - * Le scrip efface alors les lignes selectionnées avec ROWID et valide + * Le script efface alors les lignes sélectionnées avec ROWID et valide * l'effacement après chaque groupe de $commitsize lignes. * (Utilisez avec prudences, car il n'y a pas d'annulation possible). */ - $conn = OCILogon($user, $password); - $stmt = OCIParse($conn,"select rowid from $table $where"); - $rowid = OCINewDescriptor($conn,OCI_D_ROWID); - OCIDefineByName($stmt,"ROWID",&$rowid); - OCIExecute($stmt); - while ( OCIFetch($stmt) ) { - $nrows = OCIRowCount($stmt); - $delete = OCIParse($conn,"delete from $table where ROWID = :rid"); - OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID); - OCIExecute($delete); + $conn = ociLogon($user, $password); + $stmt = ociparse($conn,"select rowid from $table $where"); + $rowid = ociNewDescriptor($conn,oci_D_ROWID); + ociDefineByName($stmt,"ROWID",&$rowid); + ociexecute($stmt); + while ( ociFetch($stmt) ) { + $nrows = ociRowCount($stmt); + $delete = ociparse($conn,"delete from $table where ROWID = :rid"); + ociBindByName($delete,":rid",&$rowid,-1,oci_B_ROWID); + ociexecute($delete); print "$nrows\n"; if ( ($nrows % $commitsize) == 0 ) { - OCICommit($conn); + ociCommit($conn); } } - $nrows = OCIRowCount($stmt); + $nrows = ociRowCount($stmt); print "$nrows effacées...\n"; - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); ?> </programlisting> <programlisting role="php"> @@ -666,31 +668,31 @@ /* Ce script est fait pour être appelé depuis un formulaire HTML. * Il attends les variables $user, $password, $table, $where, et $commitsize, * données par le formulaire. Le script efface - * les lignes selectionnées avec ROWID est valide les transactions + * les lignes sélectionnées avec ROWID est valide les transactions * à chaque jeu de $commitsize lignes. (Attention : il n'y plus d'annulation) */ if(!isset($lob_upload) || $lob_upload == 'none'){ ?> <form action="upload.php3" method="post" enctype="multipart/form-data"> -Upload file: <input type="file" name="lob_upload"><br> +Upload file: <input type="file" name="lob_upload"><br> <input type="submit" value="Upload"> - <input type="reset"> </form> <?php } else { // $lob_upload contains the temporary filename of the uploaded file - $conn = OCILogon($user, $password); - $lob = OCINewDescriptor($conn, OCI_D_LOB); - $stmt = OCIParse($conn,"insert into $table (id, the_blob) values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob"); - OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB); - OCIExecute($stmt); + $conn = ociLogon($user, $password); + $lob = ociNewDescriptor($conn, oci_D_LOB); + $stmt = ociparse($conn,"insert into $table (id, the_blob) values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob"); + ociBindByName($stmt, ':the_blob', &$lob, -1, oci_B_BLOB); + ociexecute($stmt, oci_DEFAULT); if($lob->savefile($lob_upload)){ - OCICommit($conn); + ociCommit($conn); echo "Blob sauvé!\n"; }else{ echo "Impossible de sauver le Blob\n"; } - OCIFreeDescriptor($lob); - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeDescriptor($lob); + ociFreeStatement($stmt); + ociLogoff($conn); } ?> </programlisting> @@ -699,7 +701,7 @@ </refentry> <refentry id="function.ocirowcount"> <refnamediv> - <refname>OCIRowCount</refname> + <refname>ociRowCount</refname> <refpurpose>Retourne le nombre de lignes affectées.</refpurpose> </refnamediv> <refsect1> @@ -718,24 +720,24 @@ </para> <para> <example> - <title>OCIRowCount</title> + <title>ociRowCount</title> <programlisting role="php"> <?php print "<HTML><PRE>"; - $conn = OCILogon("scott","tiger"); - $stmt = OCIParse($conn,"create table emp2 as select * from emp"); - OCIExecute($stmt); - print OCIRowCount($stmt) . " rows inserted.<BR>"; - OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"delete from emp2"); - OCIExecute($stmt); - print OCIRowCount($stmt) . " rows deleted.<BR>"; - OCICommit($conn); - OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"drop table emp2"); - OCIExecute($stmt); - OCIFreeStatement($stmt); - OCILogOff($conn); + $conn = ociLogon("scott","tiger"); + $stmt = ociparse($conn,"create table emp2 as select * from emp"); + ociexecute($stmt); + print ociRowCount($stmt) . " rows inserted.<br>"; + ociFreeStatement($stmt); + $stmt = ociparse($conn,"delete from emp2"); + ociexecute($stmt); + print ociRowCount($stmt) . " rows deleted.<br>"; + ociCommit($conn); + ociFreeStatement($stmt); + $stmt = ociparse($conn,"drop table emp2"); + ociexecute($stmt); + ociFreeStatement($stmt); + ociLogOff($conn); print "</PRE></HTML>"; ?> </programlisting> @@ -745,7 +747,7 @@ </refentry> <refentry id="function.ocinumcols"> <refnamediv> - <refname>OCINumCols</refname> + <refname>ociNumCols</refname> <refpurpose>Retourne le nombre de colonnes dans un résultat</refpurpose> </refnamediv> <refsect1> @@ -761,25 +763,25 @@ dans un résultat. </para> <example> - <title>OCINumCols</title> + <title>ociNumCols</title> <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); - while ( OCIFetch($stmt) ) { + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); + while ( ociFetch($stmt) ) { print "\n"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_value = OCIResult($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_value = ociResult($stmt,$i); print $column_name . ': ' . $column_value . "\n"; } print "\n"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -789,7 +791,7 @@ </refentry> <refentry id="function.ociresult"> <refnamediv> - <refname>OCIResult</refname> + <refname>ociResult</refname> <refpurpose>Retourne la valeur d'une colonne dans une ligne lue</refpurpose> </refnamediv> <refsect1> @@ -812,9 +814,9 @@ </refentry> <refentry id="function.ocifetch"> <refnamediv> - <refname>OCIFetch</refname> + <refname>ociFetch</refname> <refpurpose> - Modifie la prochaîne ligne dans le pointeur interne de résultat. + Modifie la prochaine ligne dans le pointeur interne de résultat. </refpurpose> </refnamediv> <refsect1> @@ -826,14 +828,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ocifetch</function> place la prochaîne ligne + <function>ocifetch</function> place la prochaine ligne (d'une commande SELECT) dans le pointeur interne de résultat. </para> </refsect1> </refentry> <refentry id="function.ocifetchinto"> <refnamediv> - <refname>OCIFetchInto</refname> + <refname>ociFetchInto</refname> <refpurpose>Retourne la ligne suivante dans un tableau.</refpurpose> </refnamediv> <refsect1> @@ -854,26 +856,27 @@ <function>ocifetchinto</function> écrasera le contenu de <parameter>result</parameter>. Par défaut, <parameter>result</parameter> sera un tableau à - index numérique, commencant à 1, et qui contiendra toute les colonnes qui ne sont pas &null;. + index numérique, commençant à 1, et qui + contiendra toute les colonnes qui ne sont pas NULL. </para> <para> L'option <parameter>mode</parameter> vous permet de modifier le comportement par défaut de la fonction. Vous pouvez passer plusieurs modes simplement en les additionnant - (i.e. OCI_ASSOC+OCI_RETURN_NULLS). Les modes valides sont : + (i.e. oci_ASSOC+oci_RETURN_NULLS). Les modes valides sont : <simplelist> <member> - <literal>OCI_ASSOC</literal> Retourne un tableau associatif. + <literal>oci_ASSOC</literal> Retourne un tableau associatif. </member> <member> - <literal>OCI_NUM</literal> Retourne un tableau à index numérique + <literal>oci_NUM</literal> Retourne un tableau à index numérique (DEFAULT, valeur par défaut) </member> <member> - <literal>OCI_RETURN_NULLS</literal> Retourne les colonnes vides. + <literal>oci_RETURN_NULLS</literal> Retourne les colonnes vides. </member> <member> - <literal>OCI_RETURN_LOBS</literal> Retourne la valeur des objets LOB + <literal>oci_RETURN_LOBS</literal> Retourne la valeur des objets LOB plutôt que leur descripteur. </member> </simplelist> @@ -882,15 +885,17 @@ </refentry> <refentry id="function.ocifetchstatement"> <refnamediv> - <refname>OCIFetchStatement</refname> + <refname>ociFetchStatement</refname> <refpurpose>Retourne toutes les lignes d'un résultat.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>int <function>ocifetchstatement</function></funcdef> <paramdef>resource <parameter>stmt</parameter></paramdef> <paramdef>array &<parameter>variable</parameter></paramdef> + </funcprototype> </funcsynopsis> <para> <function>ocifetchstatement</function> retourne toutes les lignes @@ -899,14 +904,14 @@ de lignes retournées. </para> <example> - <title>OCIFetchStatement</title> + <title>ociFetchStatement</title> <programlisting role="php"> <?php -/* exemple OCIFetchStatement par mbritton@verinet.com (990624) */ -$conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"select * from emp"); -OCIExecute($stmt); -$nrows = OCIFetchStatement($stmt,$results); +/* exemple ociFetchStatement par mbritton@verinet.com (990624) */ +$conn = ociLogon("scott","tiger"); +$stmt = ociparse($conn,"select * from emp"); +ociexecute($stmt); +$nrows = ociFetchStatement($stmt,$results); if ( $nrows > 0 ) { print "<TABLE BORDER=\"1\">\n"; print "<TR>\n"; @@ -925,11 +930,11 @@ } print "</TABLE>\n"; } else { - echo "Rien n'a été trouvé<BR>\n"; + echo "Rien n'a été trouvé<br>\n"; } -print "$nrows Records Selected<BR>\n"; -OCIFreeStatement($stmt); -OCILogoff($conn); +print "$nrows Records Selected<br>\n"; +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -937,8 +942,8 @@ </refentry> <refentry id="function.ocicolumnisnull"> <refnamediv> - <refname>OCIColumnIsNULL</refname> - <refpurpose>Teste si la valeur d'une colonne est &null; </refpurpose> + <refname>ociColumnIsNULL</refname> + <refpurpose>Teste si la valeur d'une colonne est NULL </refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -950,9 +955,9 @@ </funcprototype> </funcsynopsis> <para> - <function>ocicolumnisnull</function> retourne &true; si la colonne + <function>ocicolumnisnull</function> retourne <literal>TRUE</literal> si la colonne <parameter>col</parameter> du résultat - <parameter>stmt</parameter> est &null;. Vous pouvez utiliser + <parameter>stmt</parameter> est NULL. Vous pouvez utiliser le numéro de colonne (l'indexation des colonnes commence à 1) ou le nom de la colonne, pour le paramètre <parameter>col</parameter>. @@ -961,7 +966,7 @@ </refentry> <refentry id="function.ocicolumnname"> <refnamediv> - <refname>OCIColumnName</refname> + <refname>ociColumnName</refname> <refpurpose>Retourne le nom d'une colonne.</refpurpose> </refnamediv> <refsect1> @@ -979,32 +984,32 @@ </simpara> <para> <example> - <title>OCIColumnName</title> + <title>ociColumnName</title> <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_type = ociColumnType($stmt,$i); + $column_size = ociColumnSize($stmt,$i); print "<TR>"; print "<TD>$column_name</TD>"; print "<TD>$column_type</TD>"; print "<TD>$column_size</TD>"; print "</TR>"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -1012,15 +1017,16 @@ </example> </para> <simpara> - Voir aussi <function>ocinumcols</function>, - <function>ocicolumntype</function>, - et <function>ocicolumnsize</function>. + Voir aussi + <function>ocinumcols</function>, + <function>ocicolumntype</function> et + <function>ocicolumnsize</function>. </simpara> </refsect1> </refentry> <refentry id="function.ocicolumnsize"> <refnamediv> - <refname>OCIColumnSize</refname> + <refname>ociColumnSize</refname> <refpurpose>Retourne la taille de la colonne.</refpurpose> </refnamediv> <refsect1> @@ -1040,24 +1046,24 @@ </para> <para> <example> - <title>OCIColumnSize</title> + <title>ociColumnSize</title> <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_type = ociColumnType($stmt,$i); + $column_size = ociColumnSize($stmt,$i); print "<TR>"; print "<TD>$column_name</TD>"; print "<TD>$column_type</TD>"; @@ -1065,8 +1071,8 @@ print "</TR>"; } print "</TABLE>"; - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -1074,7 +1080,8 @@ </example> </para> <simpara> - Voir aussi <function>ocinumcols</function>, + Voir aussi + <function>ocinumcols</function>, <function>ocicolumnname</function> et <function>ocicolumnsize</function>. </simpara> @@ -1082,15 +1089,17 @@ </refentry> <refentry id="function.ocicolumntype"> <refnamediv> - <refname>OCIColumnType</refname> + <refname>ociColumnType</refname> <refpurpose>Retourne le type de données d'une colonne.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>mixed <function>ocicolumntype</function></funcdef> <paramdef>resource <parameter>stmt</parameter></paramdef> <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> </funcsynopsis> <simpara> <function>ocicolumntype</function> retourne le type de données @@ -1104,28 +1113,28 @@ <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_type = ociColumnType($stmt,$i); + $column_size = ociColumnSize($stmt,$i); print "<TR>"; print "<TD>$column_name</TD>"; print "<TD>$column_type</TD>"; print "<TD>$column_size</TD>"; print "</TR>"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -1141,7 +1150,7 @@ </refentry> <refentry id="function.ociserverversion"> <refnamediv> - <refname>OCIServerVersion</refname> + <refname>ociServerVersion</refname> <refpurpose> Retourne une chaîne contenant les informations de version du serveur. </refpurpose> @@ -1149,8 +1158,10 @@ <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>string <function>ociserverversion</function></funcdef> <paramdef>resource <parameter>conn</parameter></paramdef> + </funcprototype> </funcsynopsis> <para> <function>ociserverversion</function> retourne une chaîne contenant les @@ -1159,9 +1170,9 @@ <title>Exemple avec <function>ociserverversion</function></title> <programlisting role="php"> <?php - $conn = OCILogon("scott","tiger"); - print "Version du serveur : " . OCIServerVersion($conn); - OCILogOff($conn); + $conn = ociLogon("scott","tiger"); + print "Version du serveur : " . ociServerVersion($conn); + ociLogOff($conn); ?> </programlisting> </example> @@ -1170,8 +1181,8 @@ </refentry> <refentry id="function.ocistatementtype"> <refnamediv> - <refname>OCIStatementType</refname> - <refpurpose>Retourne le type de commande OCI.</refpurpose> + <refname>ociStatementType</refname> + <refpurpose>Retourne le type de commande oci.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -1202,13 +1213,13 @@ <programlisting role="php"> <?php print "<HTML><PRE>"; - $conn = OCILogon("scott","tiger"); + $conn = ociLogon("scott","tiger"); $sql = "delete from emp where deptno = 10"; - $stmt = OCIParse($conn,$sql); - if ( OCIStatementType($stmt) == "DELETE" ) { + $stmt = ociparse($conn,$sql); + if ( ociStatementType($stmt) == "DELETE" ) { die "Vous n'etes pas autorisé à effacer dans cette table.<BR>"; } - OCILogoff($conn); + ociLogoff($conn); print "</PRE></HTML>"; ?> </programlisting> @@ -1218,7 +1229,7 @@ </refentry> <refentry id="function.ocinewcursor"> <refnamediv> - <refname>OCINewCursor</refname> + <refname>ociNewCursor</refname> <refpurpose> Retourne un nouveau pointeur à utiliser pour lier les pointeurs de références @@ -1245,18 +1256,18 @@ <?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); +$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)) { +while (ociFetchInto($curs,&$data)) { var_dump($data); } -OCIFreeCursor($stmt); -OCIFreeStatement($curs); -OCILogoff($conn); +ociFreeStatement($curs); +ociFreeCursor($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -1267,10 +1278,10 @@ <programlisting role="php"> <?php print "<HTML><BODY>"; -$conn = OCILogon("scott","tiger"); +$conn = ociLogon("scott","tiger"); $count_cursor = "CURSOR(select count(empno) num_emps from emp " . "where emp.deptno = dept.deptno) as EMPCNT from dept"; -$stmt = OCIParse($conn,"select deptno,dname,$count_cursor"); +$stmt = ociparse($conn,"select deptno,dname,$count_cursor"); ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; @@ -1278,14 +1289,14 @@ print "<TH>DEPT #</TH>"; print "<TH># EMPLOYEES</TH>"; print "</TR>"; -while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) { +while (ociFetchInto($stmt,&$data,oci_ASSOC)) { print "<TR>"; $dname = $data["DNAME"]; $deptno = $data["DEPTNO"]; print "<TD>$dname</TD>"; print "<TD>$deptno</TD>"; ociexecute($data[ "EMPCNT" ]); - while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) { + while (ociFetchInto($data[ "EMPCNT" ],&$subdata,oci_ASSOC)) { $num_emps = $subdata["NUM_EMPS"]; print "<TD>$num_emps</TD>"; } @@ -1293,8 +1304,8 @@ } print "</TABLE>"; print "</BODY></HTML>"; -OCIFreeStatement($stmt); -OCILogoff($conn); +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -1303,7 +1314,7 @@ </refentry> <refentry id="function.ocifreestatement"> <refnamediv> - <refname>OCIFreeStatement</refname> + <refname>ociFreeStatement</refname> <refpurpose> Libère toutes les ressources occupées par une commande. </refpurpose> @@ -1317,14 +1328,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ocifreestatement</function> retourne &true; - en cas de succès, et &false; en cas d'échec. + <function>ocifreestatement</function> retourne <literal>TRUE</literal> + en cas de succès, et <literal>FALSE</literal> en cas d'échec. </para> </refsect1> </refentry> <refentry id="function.ocifreecursor"> <refnamediv> - <refname>OCIFreeCursor</refname> + <refname>ociFreeCursor</refname> <refpurpose> Libère toutes les ressources occupées par un pointeur. </refpurpose> @@ -1333,19 +1344,19 @@ <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>bool <function>ocifreecursor</function></funcdef> + <funcdef>boolean <function>ocifreecursor</function></funcdef> <paramdef>resource <parameter>stmt</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <function>ocifreecursor</function> retourne &true; en cas de - succès, et &false; en cas d'échec. + <function>ocifreecursor</function> retourne <literal>TRUE</literal> en cas de + succès, et <literal>FALSE</literal> en cas d'échec. </para> </refsect1> </refentry> <refentry id="function.ocifreedesc"> <refnamediv> - <refname>OCIFreeDesc</refname> + <refname>ociFreeDesc</refname> <refpurpose>Supprime un descripteur de LOB</refpurpose> </refnamediv> <refsect1> @@ -1357,14 +1368,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ocifreedesc</function> retourne &true; en cas de - succès, et &false; en cas d'échec. + <function>ocifreedesc</function> retourne <literal>TRUE</literal> en cas de + succès, et <literal>FALSE</literal> en cas d'échec. </para> </refsect1> </refentry> <refentry id="function.ociparse"> <refnamediv> - <refname>OCIParse</refname> + <refname>ociparse</refname> <refpurpose>Analyse une requête.</refpurpose> </refnamediv> <refsect1> @@ -1372,15 +1383,15 @@ <funcsynopsis> <funcprototype> <funcdef>int <function>ociparse</function></funcdef> - <paramdef>ocifreedesc <parameter>conn</parameter></paramdef> - <paramdef>strint <parameter>query</parameter></paramdef> + <paramdef>resource <parameter>conn</parameter></paramdef> + <paramdef>string <parameter>query</parameter></paramdef> </funcprototype> </funcsynopsis> <simpara> <function>ociparse</function> analyse la requête <parameter>query</parameter> sur la connexion - <parameter>conn</parameter>, et retourne &true; si la requête - <parameter>query</parameter> est valide, et &false;, si + <parameter>conn</parameter>, et retourne <literal>TRUE</literal> si la requête + <parameter>query</parameter> est valide, et <literal>FALSE</literal>, si ce n'est pas le cas. <parameter>query</parameter> peut être n'importe quelle requête SQL. </simpara> @@ -1388,7 +1399,7 @@ </refentry> <refentry id="function.ocierror"> <refnamediv> - <refname>OCIError</refname> + <refname>ociError</refname> <refpurpose> Retourne la dernière erreur de stmt|conn|global. </refpurpose> @@ -1396,21 +1407,23 @@ <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>array <function>ocierror</function></funcdef> <paramdef>int <parameter><optional>stmt|conn</optional></parameter></paramdef> + </funcprototype> </funcsynopsis> <simpara> <function>ocierror</function> retourne la dernière erreur trouvée. Si l'option <parameter>stmt|conn</parameter> n'est pas fournie, la dernière erreur rencontrée est retournée. Si aucune erreur n'est trouvée, <function>ocierror</function> retourne - &false;. + <literal>FALSE</literal>. </simpara> </refsect1> </refentry> <refentry id="function.ociinternaldebug"> <refnamediv> - <refname>OCIInternalDebug</refname> + <refname>ociinternaldebug</refname> <refpurpose> Active ou désactive l'affichage des données de debuggage. </refpurpose> @@ -1418,13 +1431,341 @@ <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>void <function>ociinternaldebug</function></funcdef> <paramdef>int <parameter>onoff</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>ociinternaldebug</function> active ou désactive + l'affichage des informations de debuggage. Pour les afficher, mettez + <parameter>onoff</parameter> à 1, ou sinon mettez + <parameter>onoff</parameter> à 0 pour les cacher. + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicancel"> + <refnamediv> + <refname>OCICancel</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocicancel</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>ocicancel</function> dtruit les ressources lies + au dernier rsultat <parameter>stmt</parameter>. Si vous ne + souhaitez plus lire d'informations dans ce rsultat, + utilisez cette fonction. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisetprefetch"> + <refnamediv> + <refname>ocisetprefetch</refname> + <refpurpose>Indique le nombre de lignes qui doivent tre pr-lues</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocisetprefetch</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>rows</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>OCISetPrefetch</function> indique le nombre des premires lignes + qui doivent tre pr-lues. La valeur par dfaut est de 1. + </simpara> + </refsect1> + </refentry> + <refentry id="function.ociwritelobtofile"> + <refnamediv> + <refname>OCIWriteLobToFile</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>ociwritelobtofile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + <paramdef>string <parameter><optional>filename</optional></parameter></paramdef> + <paramdef>int <parameter><optional>start</optional></parameter></paramdef> + <paramdef>int <parameter><optional>lenght</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocisavelobfile"> + <refnamediv> + <refname>OCISaveLobFile</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocisavelobfile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocisavelob"> + <refnamediv> + <refname>OCISaveLob</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocisavelob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ociloadlob"> + <refnamediv> + <refname>OCILoadLob</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ociloadlob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolumnscale"> + <refnamediv> + <refname>OCIColumnScale</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocicolumnscale</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolumnprecision"> + <refnamediv> + <refname>OCIColumnPrecision</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocicolumnprecision</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolumntyperaw"> + <refnamediv> + <refname>OCIColumnTypeRaw</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>mixed <function>ocicolumntyperaw</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocinewcollection"> + <refnamediv> + <refname>OCINewCollection</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocinewcollection</function></funcdef> + <paramdef>int <parameter>conn</parameter></paramdef> + <paramdef>string <parameter>tdo</parameter></paramdef> + <paramdef>string <parameter><optional>shema</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocifreecollection"> + <refnamediv> + <refname>OCIFreeCollection</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocifreecollection</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollassign"> + <refnamediv> + <refname>OCICollAssign</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollassign</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>object <parameter>object</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollassignelem"> + <refnamediv> + <refname>OCICollAssignElem</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollassignelem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + <paramdef>string <parameter>val</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollgetelem"> + <refnamediv> + <refname>OCICollGetElem</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollgetelem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollmax"> + <refnamediv> + <refname>OCICollMax</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollmax</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollsize"> + <refnamediv> + <refname>OCICollSize</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollsize</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolltrim"> + <refnamediv> + <refname>OCICollTrim</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicolltrim</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + </funcprototype> </funcsynopsis> <simpara> - <function>ociinternaldebug</function> active l'affichage des informations de - debuggage. Pour les afficher, mettez <parameter>onoff</parameter> à 0, - ou sinon mettez <parameter>onoff</parameter> à 1 pour les cacher. + Bientôt documenté.... </simpara> </refsect1> </refentry>
Index: phpdoc/fr/functions/oci8.xml diff -u phpdoc/fr/functions/oci8.xml:1.12 phpdoc/fr/functions/oci8.xml:1.13 --- phpdoc/fr/functions/oci8.xml:1.12 Sat Jul 7 18:22:17 2001 +++ phpdoc/fr/functions/oci8.xml Wed Jul 18 09:47:22 2001 @@ -1,10 +1,10 @@ <reference id="ref.oci8"> <title>Oracle 8</title> - <titleabbrev>OCI8</titleabbrev> + <titleabbrev>oci8</titleabbrev> <partintro> <para> Ces fonctions vous permettront d'accéder aux serveurs Oracle8 et - Oracle7. Elles utilisent l'interface Oracle8 Call-Interface (OCI8). + Oracle7. Elles utilisent l'interface Oracle8 Call-Interface (oci8). Vous aurez donc besoin des librairies clientes Oracle8 pour pouvoir les utiliser. </para> @@ -16,7 +16,7 @@ d'utiliser des variables de définitions personnalisables. </para> <para> - Avant d'utiliser cette extension, assurez vous que vous avez bien + Avant d'utiliser cette extension, assurez-vous que vous avez bien paramétré vos variables d'environnement Oracle, ainsi que votre démon utilisateur. Les variables dont vous pouvez avoir besoin sont : <itemizedlist> @@ -54,7 +54,7 @@ </para> <para> Après avoir configuré ces variables pour votre utilisateur "serveur - web", assurez vous aussi d'ajouter cet utilisateur (nobody, www) + web", assurez-vous aussi d'ajouter cet utilisateur (nobody, www) au group Oracle. </para> <note> @@ -91,25 +91,27 @@ </programlisting> </informalexample> </para> - </note> <para> + </note> + <para> <example> - <title>Aide OCI</title> + <title>Aide oci</title> <programlisting role="php"> <?php // par sergo@bacup.ru -// Utilisez l'option : OCI_DEFAULT pour éxécuter les commandes avec un délai -OCIExecute($stmt, OCI_DEFAULT); +// Utilisez l'option : oci_DEFAULT pour éxécuter les commandes avec un délai +ociExecute($stmt, oci_DEFAULT); // pour lire les données après lecture, utilisez : -$result = OCIResult($stmt, $n); +$result = ociResult($stmt, $n); if (is_object ($result)) $result = $result->load(); // Pour les commandes INSERT ou UPDATE utilisez: $sql = "insert into table (field1, field2) values (field1 = 'value', field2 = empty_clob()) returning field2 into :field2"; -OCIParse($conn, $sql); -$clob = OCINewDescriptor($conn, OCI_D_LOB); -OCIBindByName ($stmt, ":field2", &$clob, -1, OCI_B_CLOB); -OCIExecute($stmt, OCI_DEFAULT); -$clob->save ("some text"); +ociparse($conn, $sql); +$clob = ociNewDescriptor($conn, oci_D_LOB); +ociBindByName ($stmt, ":field2", &$clob, -1, oci_B_CLOB); +ociexecute($stmt, oci_DEFAULT); +$clob->save ("Du texte"); +ocicommit($conn); ?> </programlisting> </example> @@ -122,15 +124,15 @@ <programlisting role="php"> <?php // par webmaster@remoterealty.com -$sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', +$sth = ociparse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', '$lastname', '$company', '$address1', '$address2', '$city', '$state', '$postalcode', '$country', :error_code );end;" ); // Ce script appelle la procédure stockée sp_newaddress, avec address_id qui est // une variable entrante/sortante et :error_code une variable sortante. // Lorsque vous les liez : - OCIBindByName ( $sth, ":address_id", $addr_id, 10 ); - OCIBindByName ( $sth, ":error_code", $errorcode, 10 ); - OCIExecute ( $sth ); + ociBindByName ( $sth, ":address_id", $addr_id, 10 ); + ociBindByName ( $sth, ":error_code", $errorcode, 10 ); + ociExecute ( $sth ); ?> </programlisting> </example> @@ -138,7 +140,7 @@ </partintro> <refentry id="function.ocidefinebyname"> <refnamediv> - <refname>OCIDefineByName</refname> + <refname>ociDefineByName</refname> <refpurpose> Utilise une variable PHP pour la phase de définition, dans une commande SELECT. </refpurpose> @@ -169,25 +171,25 @@ Si vous avez besoin de définir un type de données abstrait, tel que (LOB/ROWID/BFILE), vous devez lui allouer la mémoire avec <function>ocinewdescriptor</function>. - Reportez vous aussi à <function>ocibindbyname</function>. + Reportez-vous aussi à <function>ocibindbyname</function>. </para> <example> - <title>OCIDefineByName</title> + <title>ociDefineByName</title> <programlisting role="php"> <?php -/* Exemple OCIDefineByPos par thies@thieso.net (980219) */ -$conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"select empno, ename from emp"); +/* Exemple ociDefineByPos par thies@thieso.net (980219) */ +$conn = ociLogon("scott","tiger"); +$stmt = ociparse($conn,"select empno, ename from emp"); /* La définition DOIT être faîte AVANT ociexecute! */ -OCIDefineByName($stmt,"EMPNO",&$empno); -OCIDefineByName($stmt,"ENAME",&$ename); -OCIExecute($stmt); -while (OCIFetch($stmt)) { +ociDefineByName($stmt,"EMPNO",&$empno); +ociDefineByName($stmt,"ENAME",&$ename); +ociexecute($stmt); +while (ociFetch($stmt)) { echo "empno:".$empno."\n"; echo "ename:".$ename."\n"; } -OCIFreeStatement($stmt); -OCILogoff($conn); +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -195,7 +197,7 @@ </refentry> <refentry id="function.ocibindbyname"> <refnamediv> - <refname>OCIBindByName</refname> + <refname>ociBindByName</refname> <refpurpose> Utilise une variable PHP pour la phase de définition, dans un SELECT. </refpurpose> @@ -232,49 +234,49 @@ devrait être fixée à -1. La variable <parameter>type</parameter> indique au serveur Oracle, quel type de pointeur va être utilisé. Les valeurs possibles sont : - OCI_B_FILE (Fichier binaires), OCI_B_CFILE (Fichier texte), - OCI_B_CLOB (LOB- texte), OCI_B_BLOB (LOB binaire) - et OCI_B_ROWID (ROWID). + oci_B_FILE (Fichier binaires), oci_B_CFILE (Fichier texte), + oci_B_CLOB (LOB- texte), oci_B_BLOB (LOB binaire) + et oci_B_ROWID (ROWID). </para> <example> - <title>OCIDefineByName</title> + <title>ociDefineByName</title> <programlisting role="php"> <?php -/* Exemple OCIBindByPos par thies@thieso.net (980221) +/* Exemple ociBindByPos par thies@thieso.net (980221) Insère 3 lignes dans emp, et utilise ROWID pour mettre à jour les lignes, juste après l'insertion. */ -$conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"insert into emp (empno, ename) ". +$conn = ociLogon("scott","tiger"); +$stmt = ociparse($conn,"insert into emp (empno, ename) ". "values (:empno,:ename) ". "returning ROWID into :rid"); $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim"); -$rowid = OCINewDescriptor($conn,OCI_D_ROWID); -OCIBindByName($stmt,":empno",&$empno,32); -OCIBindByName($stmt,":ename",&$ename,32); -OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID); -$update = OCIParse($conn,"update emp set sal = :sal where ROWID = :rid"); -OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID); -OCIBindByName($update,":sal",&$sal,32); +$rowid = ociNewDescriptor($conn,oci_D_ROWID); +ociBindByName($stmt,":empno",&$empno,32); +ociBindByName($stmt,":ename",&$ename,32); +ociBindByName($stmt,":rid",&$rowid,-1,oci_B_ROWID); +$update = ociparse($conn,"update emp set sal = :sal where ROWID = :rid"); +ociBindByName($update,":rid",&$rowid,-1,oci_B_ROWID); +ociBindByName($update,":sal",&$sal,32); $sal = 10000; while (list($empno,$ename) = each($data)) { - OCIExecute($stmt); - OCIExecute($update); + ociexecute($stmt); + ociexecute($update); } $rowid->free(); -OCIFreeStatement($update); -OCIFreeStatement($stmt); -$stmt = OCIParse($conn,"select * from emp where empno in (1111,2222,3333)"); -OCIExecute($stmt); -while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) { +ociFreeStatement($update); +ociFreeStatement($stmt); +$stmt = ociparse($conn,"select * from emp where empno in (1111,2222,3333)"); +ociexecute($stmt); +while (ociFetchInto($stmt,&$arr,oci_ASSOC)) { var_dump($arr); } -OCIFreeStatement($stmt); +ociFreeStatement($stmt); /* Effacement des lignes inutiles dans la table emp .... */ -$stmt = OCIParse($conn,"delete from emp where empno in (1111,2222,3333)"); -OCIExecute($stmt); -OCIFreeStatement($stmt); -OCILogoff($conn); +$stmt = ociparse($conn,"delete from emp where empno in (1111,2222,3333)"); +ociexecute($stmt); +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -282,7 +284,7 @@ </refentry> <refentry id="function.ocilogon"> <refnamediv> - <refname>OCILogon</refname> + <refname>ociLogon</refname> <refpurpose>Etablit une connexion à un serveur Oracle.</refpurpose> </refnamediv> <refsect1> @@ -299,7 +301,7 @@ </funcsynopsis> <para> <function>ocilogon</function> retourne un identifiant de connexion, - nécessaire à la plus part des fonctions OCI. Si l'option + nécessaire à la plupart des fonctions oci. Si l'option ORACLE_SID n'est pas précisée, PHP utilisera la variable d'environnement ORACLE_SID pour déterminer le serveur de connexion. </para> @@ -313,7 +315,7 @@ <para> Cet exemple montre comment les connexions sont partagées : <example> - <title>OCILogon</title> + <title>ociLogon</title> <programlisting role="php"> <?php print "<HTML><PRE>"; @@ -333,12 +335,12 @@ } function insert_data($conn) { $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." inserted hallo\n\n"; } function delete_data($conn) { $stmt = ociparse($conn,"delete from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." deleted hallo\n\n"; } function commit($conn) @@ -351,7 +353,7 @@ } function select_data($conn) { $stmt = ociparse($conn,"select * from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) echo $conn." <".ociresult($stmt,"TEST").">\n\n"; @@ -387,7 +389,7 @@ </refentry> <refentry id="function.ociplogon"> <refnamediv> - <refname>OCIPLogon</refname> + <refname>ociPLogon</refname> <refpurpose>Connection persistante à un serveur Oracle.</refpurpose> </refnamediv> <refsect1> @@ -415,7 +417,7 @@ </refsect1></refentry> <refentry id="function.ocinlogon"> <refnamediv> - <refname>OCINLogon</refname> + <refname>ociNLogon</refname> <refpurpose> Se connecte à un serveur Oracle avec une nouvelle connexion. </refpurpose> @@ -451,10 +453,10 @@ ne s'appliquent qu'à la connexion spécifée. </para> <para> - L'exemple ci dessous montre l'utilisation des connexions + L'exemple ci-dessous montre l'utilisation des connexions séparées. <example> - <title>OCINLogon</title> + <title>ociNLogon</title> <programlisting role="php"> <?php print "<HTML><PRE>"; @@ -474,12 +476,12 @@ } function insert_data($conn) { $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." inserted hallo\n\n"; } function delete_data($conn) { $stmt = ociparse($conn,"delete from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn." deleted hallo\n\n"; } function commit($conn) @@ -492,7 +494,7 @@ } function select_data($conn) { $stmt = ociparse($conn,"select * from scott.hallo"); - ociexecute($stmt,OCI_DEFAULT); + ociexecute($stmt,oci_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) echo $conn." <".ociresult($stmt,"TEST").">\n\n"; @@ -528,8 +530,8 @@ </refentry> <refentry id="function.ocilogoff"> <refnamediv> - <refname>OCILogOff</refname> - <refpurpose>Déconnection d'un serveur Oracle </refpurpose> + <refname>ociLogOff</refname> + <refpurpose>Déconnexion d'un serveur Oracle </refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -546,7 +548,7 @@ </refentry> <refentry id="function.ociexecute"> <refnamediv> - <refname>OCIExecute</refname> + <refname>ociexecute</refname> <refpurpose>Exécute une commande </refpurpose> </refnamediv> <refsect1> @@ -565,14 +567,14 @@ déjà préparée (voir <function>ociparse</function>). L'option <parameter>mode</parameter> vous permet de spécifier le mode d'exécution (par défaut, - il est à OCI_COMMIT_ON_SUCCESS). Si vous ne voulez pas que la - commande soit automatiquement validée, utilisez le mode OCI_DEFAULT. + il est à oci_COMMIT_ON_SUCCESS). Si vous ne voulez pas que la + commande soit automatiquement validée, utilisez le mode oci_DEFAULT. </para> </refsect1> </refentry> <refentry id="function.ocicommit"> <refnamediv> - <refname>OCICommit</refname> + <refname>ociCommit</refname> <refpurpose>Valide les transactions en cours.</refpurpose> </refnamediv> <refsect1> @@ -591,7 +593,7 @@ </refentry> <refentry id="function.ocirollback"> <refnamediv> - <refname>OCIRollback</refname> + <refname>ociRollback</refname> <refpurpose>Annule les transactions en cours </refpurpose> </refnamediv> <refsect1> @@ -610,7 +612,7 @@ </refentry> <refentry id="function.ocinewdescriptor"> <refnamediv> - <refname>OCINewDescriptor</refname> + <refname>ociNewDescriptor</refname> <refpurpose>Initialise un nouveau pointeur vide de LOB/FILE</refpurpose> </refnamediv> <refsect1> @@ -628,37 +630,37 @@ <function>ocinewdescriptor</function> alloue l'espace nécessaire pour stocker un descripteur, ou un pointeur de LOB. Les valeurs acceptées pour type sont - OCI_D_FILE, OCI_D_LOB et OCI_D_ROWID. + oci_D_FILE, oci_D_LOB et oci_D_ROWID. </para> <example> - <title>OCINewDescriptor</title> + <title>ociNewDescriptor</title> <programlisting role="php"> <?php /* Ce script est fait pour être appelé dans un formulaire HTML * Il attends les variables $user, $password, $table, $where, et $commitsize - * Le scrip efface alors les lignes selectionnées avec ROWID et valide + * Le script efface alors les lignes sélectionnées avec ROWID et valide * l'effacement après chaque groupe de $commitsize lignes. * (Utilisez avec prudences, car il n'y a pas d'annulation possible). */ - $conn = OCILogon($user, $password); - $stmt = OCIParse($conn,"select rowid from $table $where"); - $rowid = OCINewDescriptor($conn,OCI_D_ROWID); - OCIDefineByName($stmt,"ROWID",&$rowid); - OCIExecute($stmt); - while ( OCIFetch($stmt) ) { - $nrows = OCIRowCount($stmt); - $delete = OCIParse($conn,"delete from $table where ROWID = :rid"); - OCIBindByName($delete,":rid",&$rowid,-1,OCI_B_ROWID); - OCIExecute($delete); + $conn = ociLogon($user, $password); + $stmt = ociparse($conn,"select rowid from $table $where"); + $rowid = ociNewDescriptor($conn,oci_D_ROWID); + ociDefineByName($stmt,"ROWID",&$rowid); + ociexecute($stmt); + while ( ociFetch($stmt) ) { + $nrows = ociRowCount($stmt); + $delete = ociparse($conn,"delete from $table where ROWID = :rid"); + ociBindByName($delete,":rid",&$rowid,-1,oci_B_ROWID); + ociexecute($delete); print "$nrows\n"; if ( ($nrows % $commitsize) == 0 ) { - OCICommit($conn); + ociCommit($conn); } } - $nrows = OCIRowCount($stmt); + $nrows = ociRowCount($stmt); print "$nrows effacées...\n"; - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); ?> </programlisting> <programlisting role="php"> @@ -666,31 +668,31 @@ /* Ce script est fait pour être appelé depuis un formulaire HTML. * Il attends les variables $user, $password, $table, $where, et $commitsize, * données par le formulaire. Le script efface - * les lignes selectionnées avec ROWID est valide les transactions + * les lignes sélectionnées avec ROWID est valide les transactions * à chaque jeu de $commitsize lignes. (Attention : il n'y plus d'annulation) */ if(!isset($lob_upload) || $lob_upload == 'none'){ ?> <form action="upload.php3" method="post" enctype="multipart/form-data"> -Upload file: <input type="file" name="lob_upload"><br> +Upload file: <input type="file" name="lob_upload"><br> <input type="submit" value="Upload"> - <input type="reset"> </form> <?php } else { // $lob_upload contains the temporary filename of the uploaded file - $conn = OCILogon($user, $password); - $lob = OCINewDescriptor($conn, OCI_D_LOB); - $stmt = OCIParse($conn,"insert into $table (id, the_blob) values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob"); - OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB); - OCIExecute($stmt); + $conn = ociLogon($user, $password); + $lob = ociNewDescriptor($conn, oci_D_LOB); + $stmt = ociparse($conn,"insert into $table (id, the_blob) values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob"); + ociBindByName($stmt, ':the_blob', &$lob, -1, oci_B_BLOB); + ociexecute($stmt, oci_DEFAULT); if($lob->savefile($lob_upload)){ - OCICommit($conn); + ociCommit($conn); echo "Blob sauvé!\n"; }else{ echo "Impossible de sauver le Blob\n"; } - OCIFreeDescriptor($lob); - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeDescriptor($lob); + ociFreeStatement($stmt); + ociLogoff($conn); } ?> </programlisting> @@ -699,7 +701,7 @@ </refentry> <refentry id="function.ocirowcount"> <refnamediv> - <refname>OCIRowCount</refname> + <refname>ociRowCount</refname> <refpurpose>Retourne le nombre de lignes affectées.</refpurpose> </refnamediv> <refsect1> @@ -718,24 +720,24 @@ </para> <para> <example> - <title>OCIRowCount</title> + <title>ociRowCount</title> <programlisting role="php"> <?php print "<HTML><PRE>"; - $conn = OCILogon("scott","tiger"); - $stmt = OCIParse($conn,"create table emp2 as select * from emp"); - OCIExecute($stmt); - print OCIRowCount($stmt) . " rows inserted.<BR>"; - OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"delete from emp2"); - OCIExecute($stmt); - print OCIRowCount($stmt) . " rows deleted.<BR>"; - OCICommit($conn); - OCIFreeStatement($stmt); - $stmt = OCIParse($conn,"drop table emp2"); - OCIExecute($stmt); - OCIFreeStatement($stmt); - OCILogOff($conn); + $conn = ociLogon("scott","tiger"); + $stmt = ociparse($conn,"create table emp2 as select * from emp"); + ociexecute($stmt); + print ociRowCount($stmt) . " rows inserted.<br>"; + ociFreeStatement($stmt); + $stmt = ociparse($conn,"delete from emp2"); + ociexecute($stmt); + print ociRowCount($stmt) . " rows deleted.<br>"; + ociCommit($conn); + ociFreeStatement($stmt); + $stmt = ociparse($conn,"drop table emp2"); + ociexecute($stmt); + ociFreeStatement($stmt); + ociLogOff($conn); print "</PRE></HTML>"; ?> </programlisting> @@ -745,7 +747,7 @@ </refentry> <refentry id="function.ocinumcols"> <refnamediv> - <refname>OCINumCols</refname> + <refname>ociNumCols</refname> <refpurpose>Retourne le nombre de colonnes dans un résultat</refpurpose> </refnamediv> <refsect1> @@ -761,25 +763,25 @@ dans un résultat. </para> <example> - <title>OCINumCols</title> + <title>ociNumCols</title> <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); - while ( OCIFetch($stmt) ) { + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); + while ( ociFetch($stmt) ) { print "\n"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_value = OCIResult($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_value = ociResult($stmt,$i); print $column_name . ': ' . $column_value . "\n"; } print "\n"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -789,7 +791,7 @@ </refentry> <refentry id="function.ociresult"> <refnamediv> - <refname>OCIResult</refname> + <refname>ociResult</refname> <refpurpose>Retourne la valeur d'une colonne dans une ligne lue</refpurpose> </refnamediv> <refsect1> @@ -812,9 +814,9 @@ </refentry> <refentry id="function.ocifetch"> <refnamediv> - <refname>OCIFetch</refname> + <refname>ociFetch</refname> <refpurpose> - Modifie la prochaîne ligne dans le pointeur interne de résultat. + Modifie la prochaine ligne dans le pointeur interne de résultat. </refpurpose> </refnamediv> <refsect1> @@ -826,14 +828,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ocifetch</function> place la prochaîne ligne + <function>ocifetch</function> place la prochaine ligne (d'une commande SELECT) dans le pointeur interne de résultat. </para> </refsect1> </refentry> <refentry id="function.ocifetchinto"> <refnamediv> - <refname>OCIFetchInto</refname> + <refname>ociFetchInto</refname> <refpurpose>Retourne la ligne suivante dans un tableau.</refpurpose> </refnamediv> <refsect1> @@ -854,26 +856,27 @@ <function>ocifetchinto</function> écrasera le contenu de <parameter>result</parameter>. Par défaut, <parameter>result</parameter> sera un tableau à - index numérique, commencant à 1, et qui contiendra toute les colonnes qui ne sont pas &null;. + index numérique, commençant à 1, et qui + contiendra toute les colonnes qui ne sont pas NULL. </para> <para> L'option <parameter>mode</parameter> vous permet de modifier le comportement par défaut de la fonction. Vous pouvez passer plusieurs modes simplement en les additionnant - (i.e. OCI_ASSOC+OCI_RETURN_NULLS). Les modes valides sont : + (i.e. oci_ASSOC+oci_RETURN_NULLS). Les modes valides sont : <simplelist> <member> - <literal>OCI_ASSOC</literal> Retourne un tableau associatif. + <literal>oci_ASSOC</literal> Retourne un tableau associatif. </member> <member> - <literal>OCI_NUM</literal> Retourne un tableau à index numérique + <literal>oci_NUM</literal> Retourne un tableau à index numérique (DEFAULT, valeur par défaut) </member> <member> - <literal>OCI_RETURN_NULLS</literal> Retourne les colonnes vides. + <literal>oci_RETURN_NULLS</literal> Retourne les colonnes vides. </member> <member> - <literal>OCI_RETURN_LOBS</literal> Retourne la valeur des objets LOB + <literal>oci_RETURN_LOBS</literal> Retourne la valeur des objets LOB plutôt que leur descripteur. </member> </simplelist> @@ -882,15 +885,17 @@ </refentry> <refentry id="function.ocifetchstatement"> <refnamediv> - <refname>OCIFetchStatement</refname> + <refname>ociFetchStatement</refname> <refpurpose>Retourne toutes les lignes d'un résultat.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>int <function>ocifetchstatement</function></funcdef> <paramdef>resource <parameter>stmt</parameter></paramdef> <paramdef>array &<parameter>variable</parameter></paramdef> + </funcprototype> </funcsynopsis> <para> <function>ocifetchstatement</function> retourne toutes les lignes @@ -899,14 +904,14 @@ de lignes retournées. </para> <example> - <title>OCIFetchStatement</title> + <title>ociFetchStatement</title> <programlisting role="php"> <?php -/* exemple OCIFetchStatement par mbritton@verinet.com (990624) */ -$conn = OCILogon("scott","tiger"); -$stmt = OCIParse($conn,"select * from emp"); -OCIExecute($stmt); -$nrows = OCIFetchStatement($stmt,$results); +/* exemple ociFetchStatement par mbritton@verinet.com (990624) */ +$conn = ociLogon("scott","tiger"); +$stmt = ociparse($conn,"select * from emp"); +ociexecute($stmt); +$nrows = ociFetchStatement($stmt,$results); if ( $nrows > 0 ) { print "<TABLE BORDER=\"1\">\n"; print "<TR>\n"; @@ -925,11 +930,11 @@ } print "</TABLE>\n"; } else { - echo "Rien n'a été trouvé<BR>\n"; + echo "Rien n'a été trouvé<br>\n"; } -print "$nrows Records Selected<BR>\n"; -OCIFreeStatement($stmt); -OCILogoff($conn); +print "$nrows Records Selected<br>\n"; +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -937,8 +942,8 @@ </refentry> <refentry id="function.ocicolumnisnull"> <refnamediv> - <refname>OCIColumnIsNULL</refname> - <refpurpose>Teste si la valeur d'une colonne est &null; </refpurpose> + <refname>ociColumnIsNULL</refname> + <refpurpose>Teste si la valeur d'une colonne est NULL </refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -950,9 +955,9 @@ </funcprototype> </funcsynopsis> <para> - <function>ocicolumnisnull</function> retourne &true; si la colonne + <function>ocicolumnisnull</function> retourne <literal>TRUE</literal> si la colonne <parameter>col</parameter> du résultat - <parameter>stmt</parameter> est &null;. Vous pouvez utiliser + <parameter>stmt</parameter> est NULL. Vous pouvez utiliser le numéro de colonne (l'indexation des colonnes commence à 1) ou le nom de la colonne, pour le paramètre <parameter>col</parameter>. @@ -961,7 +966,7 @@ </refentry> <refentry id="function.ocicolumnname"> <refnamediv> - <refname>OCIColumnName</refname> + <refname>ociColumnName</refname> <refpurpose>Retourne le nom d'une colonne.</refpurpose> </refnamediv> <refsect1> @@ -979,32 +984,32 @@ </simpara> <para> <example> - <title>OCIColumnName</title> + <title>ociColumnName</title> <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_type = ociColumnType($stmt,$i); + $column_size = ociColumnSize($stmt,$i); print "<TR>"; print "<TD>$column_name</TD>"; print "<TD>$column_type</TD>"; print "<TD>$column_size</TD>"; print "</TR>"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -1012,15 +1017,16 @@ </example> </para> <simpara> - Voir aussi <function>ocinumcols</function>, - <function>ocicolumntype</function>, - et <function>ocicolumnsize</function>. + Voir aussi + <function>ocinumcols</function>, + <function>ocicolumntype</function> et + <function>ocicolumnsize</function>. </simpara> </refsect1> </refentry> <refentry id="function.ocicolumnsize"> <refnamediv> - <refname>OCIColumnSize</refname> + <refname>ociColumnSize</refname> <refpurpose>Retourne la taille de la colonne.</refpurpose> </refnamediv> <refsect1> @@ -1040,24 +1046,24 @@ </para> <para> <example> - <title>OCIColumnSize</title> + <title>ociColumnSize</title> <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_type = ociColumnType($stmt,$i); + $column_size = ociColumnSize($stmt,$i); print "<TR>"; print "<TD>$column_name</TD>"; print "<TD>$column_type</TD>"; @@ -1065,8 +1071,8 @@ print "</TR>"; } print "</TABLE>"; - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -1074,7 +1080,8 @@ </example> </para> <simpara> - Voir aussi <function>ocinumcols</function>, + Voir aussi + <function>ocinumcols</function>, <function>ocicolumnname</function> et <function>ocicolumnsize</function>. </simpara> @@ -1082,15 +1089,17 @@ </refentry> <refentry id="function.ocicolumntype"> <refnamediv> - <refname>OCIColumnType</refname> + <refname>ociColumnType</refname> <refpurpose>Retourne le type de données d'une colonne.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>mixed <function>ocicolumntype</function></funcdef> <paramdef>resource <parameter>stmt</parameter></paramdef> <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> </funcsynopsis> <simpara> <function>ocicolumntype</function> retourne le type de données @@ -1104,28 +1113,28 @@ <programlisting role="php"> <?php print "<HTML><PRE>\n"; - $conn = OCILogon("scott", "tiger"); - $stmt = OCIParse($conn,"select * from emp"); - OCIExecute($stmt); + $conn = ociLogon("scott", "tiger"); + $stmt = ociparse($conn,"select * from emp"); + ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; print "<TH>Name</TH>"; print "<TH>Type</TH>"; print "<TH>Length</TH>"; print "</TR>"; - $ncols = OCINumCols($stmt); + $ncols = ociNumCols($stmt); for ( $i = 1; $i <= $ncols; $i++ ) { - $column_name = OCIColumnName($stmt,$i); - $column_type = OCIColumnType($stmt,$i); - $column_size = OCIColumnSize($stmt,$i); + $column_name = ociColumnName($stmt,$i); + $column_type = ociColumnType($stmt,$i); + $column_size = ociColumnSize($stmt,$i); print "<TR>"; print "<TD>$column_name</TD>"; print "<TD>$column_type</TD>"; print "<TD>$column_size</TD>"; print "</TR>"; } - OCIFreeStatement($stmt); - OCILogoff($conn); + ociFreeStatement($stmt); + ociLogoff($conn); print "</PRE>"; print "</HTML>\n"; ?> @@ -1141,7 +1150,7 @@ </refentry> <refentry id="function.ociserverversion"> <refnamediv> - <refname>OCIServerVersion</refname> + <refname>ociServerVersion</refname> <refpurpose> Retourne une chaîne contenant les informations de version du serveur. </refpurpose> @@ -1149,8 +1158,10 @@ <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>string <function>ociserverversion</function></funcdef> <paramdef>resource <parameter>conn</parameter></paramdef> + </funcprototype> </funcsynopsis> <para> <function>ociserverversion</function> retourne une chaîne contenant les @@ -1159,9 +1170,9 @@ <title>Exemple avec <function>ociserverversion</function></title> <programlisting role="php"> <?php - $conn = OCILogon("scott","tiger"); - print "Version du serveur : " . OCIServerVersion($conn); - OCILogOff($conn); + $conn = ociLogon("scott","tiger"); + print "Version du serveur : " . ociServerVersion($conn); + ociLogOff($conn); ?> </programlisting> </example> @@ -1170,8 +1181,8 @@ </refentry> <refentry id="function.ocistatementtype"> <refnamediv> - <refname>OCIStatementType</refname> - <refpurpose>Retourne le type de commande OCI.</refpurpose> + <refname>ociStatementType</refname> + <refpurpose>Retourne le type de commande oci.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -1202,13 +1213,13 @@ <programlisting role="php"> <?php print "<HTML><PRE>"; - $conn = OCILogon("scott","tiger"); + $conn = ociLogon("scott","tiger"); $sql = "delete from emp where deptno = 10"; - $stmt = OCIParse($conn,$sql); - if ( OCIStatementType($stmt) == "DELETE" ) { + $stmt = ociparse($conn,$sql); + if ( ociStatementType($stmt) == "DELETE" ) { die "Vous n'etes pas autorisé à effacer dans cette table.<BR>"; } - OCILogoff($conn); + ociLogoff($conn); print "</PRE></HTML>"; ?> </programlisting> @@ -1218,7 +1229,7 @@ </refentry> <refentry id="function.ocinewcursor"> <refnamediv> - <refname>OCINewCursor</refname> + <refname>ociNewCursor</refname> <refpurpose> Retourne un nouveau pointeur à utiliser pour lier les pointeurs de références @@ -1245,18 +1256,18 @@ <?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); +$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)) { +while (ociFetchInto($curs,&$data)) { var_dump($data); } -OCIFreeCursor($stmt); -OCIFreeStatement($curs); -OCILogoff($conn); +ociFreeStatement($curs); +ociFreeCursor($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -1267,10 +1278,10 @@ <programlisting role="php"> <?php print "<HTML><BODY>"; -$conn = OCILogon("scott","tiger"); +$conn = ociLogon("scott","tiger"); $count_cursor = "CURSOR(select count(empno) num_emps from emp " . "where emp.deptno = dept.deptno) as EMPCNT from dept"; -$stmt = OCIParse($conn,"select deptno,dname,$count_cursor"); +$stmt = ociparse($conn,"select deptno,dname,$count_cursor"); ociexecute($stmt); print "<TABLE BORDER=\"1\">"; print "<TR>"; @@ -1278,14 +1289,14 @@ print "<TH>DEPT #</TH>"; print "<TH># EMPLOYEES</TH>"; print "</TR>"; -while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) { +while (ociFetchInto($stmt,&$data,oci_ASSOC)) { print "<TR>"; $dname = $data["DNAME"]; $deptno = $data["DEPTNO"]; print "<TD>$dname</TD>"; print "<TD>$deptno</TD>"; ociexecute($data[ "EMPCNT" ]); - while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) { + while (ociFetchInto($data[ "EMPCNT" ],&$subdata,oci_ASSOC)) { $num_emps = $subdata["NUM_EMPS"]; print "<TD>$num_emps</TD>"; } @@ -1293,8 +1304,8 @@ } print "</TABLE>"; print "</BODY></HTML>"; -OCIFreeStatement($stmt); -OCILogoff($conn); +ociFreeStatement($stmt); +ociLogoff($conn); ?> </programlisting> </example> @@ -1303,7 +1314,7 @@ </refentry> <refentry id="function.ocifreestatement"> <refnamediv> - <refname>OCIFreeStatement</refname> + <refname>ociFreeStatement</refname> <refpurpose> Libère toutes les ressources occupées par une commande. </refpurpose> @@ -1317,14 +1328,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ocifreestatement</function> retourne &true; - en cas de succès, et &false; en cas d'échec. + <function>ocifreestatement</function> retourne <literal>TRUE</literal> + en cas de succès, et <literal>FALSE</literal> en cas d'échec. </para> </refsect1> </refentry> <refentry id="function.ocifreecursor"> <refnamediv> - <refname>OCIFreeCursor</refname> + <refname>ociFreeCursor</refname> <refpurpose> Libère toutes les ressources occupées par un pointeur. </refpurpose> @@ -1333,19 +1344,19 @@ <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>bool <function>ocifreecursor</function></funcdef> + <funcdef>boolean <function>ocifreecursor</function></funcdef> <paramdef>resource <parameter>stmt</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <function>ocifreecursor</function> retourne &true; en cas de - succès, et &false; en cas d'échec. + <function>ocifreecursor</function> retourne <literal>TRUE</literal> en cas de + succès, et <literal>FALSE</literal> en cas d'échec. </para> </refsect1> </refentry> <refentry id="function.ocifreedesc"> <refnamediv> - <refname>OCIFreeDesc</refname> + <refname>ociFreeDesc</refname> <refpurpose>Supprime un descripteur de LOB</refpurpose> </refnamediv> <refsect1> @@ -1357,14 +1368,14 @@ </funcprototype> </funcsynopsis> <para> - <function>ocifreedesc</function> retourne &true; en cas de - succès, et &false; en cas d'échec. + <function>ocifreedesc</function> retourne <literal>TRUE</literal> en cas de + succès, et <literal>FALSE</literal> en cas d'échec. </para> </refsect1> </refentry> <refentry id="function.ociparse"> <refnamediv> - <refname>OCIParse</refname> + <refname>ociparse</refname> <refpurpose>Analyse une requête.</refpurpose> </refnamediv> <refsect1> @@ -1372,15 +1383,15 @@ <funcsynopsis> <funcprototype> <funcdef>int <function>ociparse</function></funcdef> - <paramdef>ocifreedesc <parameter>conn</parameter></paramdef> - <paramdef>strint <parameter>query</parameter></paramdef> + <paramdef>resource <parameter>conn</parameter></paramdef> + <paramdef>string <parameter>query</parameter></paramdef> </funcprototype> </funcsynopsis> <simpara> <function>ociparse</function> analyse la requête <parameter>query</parameter> sur la connexion - <parameter>conn</parameter>, et retourne &true; si la requête - <parameter>query</parameter> est valide, et &false;, si + <parameter>conn</parameter>, et retourne <literal>TRUE</literal> si la requête + <parameter>query</parameter> est valide, et <literal>FALSE</literal>, si ce n'est pas le cas. <parameter>query</parameter> peut être n'importe quelle requête SQL. </simpara> @@ -1388,7 +1399,7 @@ </refentry> <refentry id="function.ocierror"> <refnamediv> - <refname>OCIError</refname> + <refname>ociError</refname> <refpurpose> Retourne la dernière erreur de stmt|conn|global. </refpurpose> @@ -1396,21 +1407,23 @@ <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>array <function>ocierror</function></funcdef> <paramdef>int <parameter><optional>stmt|conn</optional></parameter></paramdef> + </funcprototype> </funcsynopsis> <simpara> <function>ocierror</function> retourne la dernière erreur trouvée. Si l'option <parameter>stmt|conn</parameter> n'est pas fournie, la dernière erreur rencontrée est retournée. Si aucune erreur n'est trouvée, <function>ocierror</function> retourne - &false;. + <literal>FALSE</literal>. </simpara> </refsect1> </refentry> <refentry id="function.ociinternaldebug"> <refnamediv> - <refname>OCIInternalDebug</refname> + <refname>ociinternaldebug</refname> <refpurpose> Active ou désactive l'affichage des données de debuggage. </refpurpose> @@ -1418,13 +1431,341 @@ <refsect1> <title>Description</title> <funcsynopsis> + <funcprototype> <funcdef>void <function>ociinternaldebug</function></funcdef> <paramdef>int <parameter>onoff</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>ociinternaldebug</function> active ou désactive + l'affichage des informations de debuggage. Pour les afficher, mettez + <parameter>onoff</parameter> à 1, ou sinon mettez + <parameter>onoff</parameter> à 0 pour les cacher. + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicancel"> + <refnamediv> + <refname>OCICancel</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocicancel</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>ocicancel</function> dtruit les ressources lies + au dernier rsultat <parameter>stmt</parameter>. Si vous ne + souhaitez plus lire d'informations dans ce rsultat, + utilisez cette fonction. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisetprefetch"> + <refnamediv> + <refname>ocisetprefetch</refname> + <refpurpose>Indique le nombre de lignes qui doivent tre pr-lues</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocisetprefetch</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>rows</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + <function>OCISetPrefetch</function> indique le nombre des premires lignes + qui doivent tre pr-lues. La valeur par dfaut est de 1. + </simpara> + </refsect1> + </refentry> + <refentry id="function.ociwritelobtofile"> + <refnamediv> + <refname>OCIWriteLobToFile</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>ociwritelobtofile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + <paramdef>string <parameter><optional>filename</optional></parameter></paramdef> + <paramdef>int <parameter><optional>start</optional></parameter></paramdef> + <paramdef>int <parameter><optional>lenght</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocisavelobfile"> + <refnamediv> + <refname>OCISaveLobFile</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocisavelobfile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocisavelob"> + <refnamediv> + <refname>OCISaveLob</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocisavelob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ociloadlob"> + <refnamediv> + <refname>OCILoadLob</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ociloadlob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolumnscale"> + <refnamediv> + <refname>OCIColumnScale</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocicolumnscale</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolumnprecision"> + <refnamediv> + <refname>OCIColumnPrecision</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>ocicolumnprecision</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolumntyperaw"> + <refnamediv> + <refname>OCIColumnTypeRaw</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>mixed <function>ocicolumntyperaw</function></funcdef> + <paramdef>resource <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocinewcollection"> + <refnamediv> + <refname>OCINewCollection</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocinewcollection</function></funcdef> + <paramdef>int <parameter>conn</parameter></paramdef> + <paramdef>string <parameter>tdo</parameter></paramdef> + <paramdef>string <parameter><optional>shema</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocifreecollection"> + <refnamediv> + <refname>OCIFreeCollection</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocifreecollection</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollassign"> + <refnamediv> + <refname>OCICollAssign</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollassign</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>object <parameter>object</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollassignelem"> + <refnamediv> + <refname>OCICollAssignElem</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollassignelem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + <paramdef>string <parameter>val</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollgetelem"> + <refnamediv> + <refname>OCICollGetElem</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollgetelem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollmax"> + <refnamediv> + <refname>OCICollMax</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollmax</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicollsize"> + <refnamediv> + <refname>OCICollSize</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicollsize</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Bientôt documenté.... + </simpara> + </refsect1> + </refentry> + <refentry id="function.ocicolltrim"> + <refnamediv> + <refname>OCICollTrim</refname> + <refpurpose>Bientôt documenté....</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>ocicolltrim</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + </funcprototype> </funcsynopsis> <simpara> - <function>ociinternaldebug</function> active l'affichage des informations de - debuggage. Pour les afficher, mettez <parameter>onoff</parameter> à 0, - ou sinon mettez <parameter>onoff</parameter> à 1 pour les cacher. + Bientôt documenté.... </simpara> </refsect1> </refentry>