cvs: phpdoc-zh /reference/oci8/functions ocilogoff.xml ocilogon.xml
| From: | Dallas Thunder | Date: | Thu, 08 Sep 2005 16:04:06 +0000 |
| Subject: | cvs: phpdoc-zh /reference/oci8/functions ocilogoff.xml ocilogon.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2614@lists.php.net to get a copy of this message | ||
dallas Thu Sep 8 12:04:06 2005 EDT
Modified files:
/phpdoc-zh/reference/oci8/functions ocilogoff.xml ocilogon.xml
Log:
Updated. Note some function/file names are changed!
http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/functions/ocilogoff.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc-zh/reference/oci8/functions/ocilogoff.xml
diff -u phpdoc-zh/reference/oci8/functions/ocilogoff.xml:1.4
phpdoc-zh/reference/oci8/functions/ocilogoff.xml:1.5
--- phpdoc-zh/reference/oci8/functions/ocilogoff.xml:1.4 Thu Aug 18 00:41:30 2005
+++ phpdoc-zh/reference/oci8/functions/ocilogoff.xml Thu Sep 8 12:04:05 2005
@@ -1,29 +1,20 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.4 $ -->
-<!-- $Author: lm92 $ -->
-<!-- EN-Revision: 1.6 Maintainer: yincheng Status: ready -->
-<!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 -->
- <refentry id="function.ocilogoff">
- <refnamediv>
- <refname>ocilogoff</refname>
- <refpurpose>´Ó Oracle ¶Ï¿ªÁ¬½Ó</refpurpose>
- </refnamediv>
- <refsect1>
- <title>ÃèÊö</title>
- <methodsynopsis>
- <type>bool</type><methodname>ocilogoff</methodname>
-
<methodparam><type>int</type><parameter>connection</parameter></methodparam>
- </methodsynopsis>
- <para>
-º¯Êý <function>ocilogoff</function> ¹Ø±ÕÒ»¸ö Oracle Á¬½Ó¡£
- </para>
- <para>
-ÔÚͨ³£Çé¿öÏ£¬²»ÐèҪʹÓà <function>ocilogoff</function>
-º¯Êý£¬ÒòΪËùÓзdzÖÐøÁ¬½ÓÔÚ³ÌÐòÖ´ÐнáÊøÊ±¶¼»á×Ô¶¯¹Ø±Õ¡£²Î¼û
-<link
linkend="language.types.resource.self-destruct">ÊÍ·Å×ÊÔ´</link>¡£
- </para>
- </refsect1>
- </refentry>
+<!-- $Revision: 1.5 $ -->
+<!-- $Author: dallas $ -->
+<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready -->
+<refentry id="function.ocilogoff">
+ <refnamediv>
+ <refname>ocilogoff</refname>
+ <refpurpose><function>oci_close</function> µÄ&Alias;</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <simpara>
+ &info.function.alias;<function>oci_close</function>¡£
+ </simpara>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables:
http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/functions/ocilogon.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-zh/reference/oci8/functions/ocilogon.xml
diff -u phpdoc-zh/reference/oci8/functions/ocilogon.xml:1.3
phpdoc-zh/reference/oci8/functions/ocilogon.xml:1.4
--- phpdoc-zh/reference/oci8/functions/ocilogon.xml:1.3 Thu Aug 18 00:41:31 2005
+++ phpdoc-zh/reference/oci8/functions/ocilogon.xml Thu Sep 8 12:04:05 2005
@@ -1,135 +1,20 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.3 $ -->
-<!-- $Author: lm92 $ -->
-<!-- EN-Revision: 1.9 Maintainer: yincheng Status: ready -->
-<!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 -->
- <refentry id="function.ocilogon">
- <refnamediv>
- <refname>ocilogon</refname>
- <refpurpose>È·Á¢Ò»¸öµ½ Oracle µÄÁ¬½Ó</refpurpose>
- </refnamediv>
- <refsect1>
- <title>ÃèÊö</title>
- <methodsynopsis>
- <type>resource</type><methodname>ocilogon</methodname>
-
<methodparam><type>string</type><parameter>username</parameter></methodparam>
-
<methodparam><type>string</type><parameter>password</parameter></methodparam>
- <methodparam
choice="opt"><type>string</type><parameter>db</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ocilogon</function> ·µ»ØÒ»¸öOCI
µ÷ÓÃÐèÒªµÄÁ¬½Ó±êÖ¾·û¡£
-¿ÉÑ¡µÄµÚ3¸ö²ÎÊýº¬ÓÐÄãÏëÒªÁ¬½ÓµÄÊý¾Ý¿âµÄÃû×Ö£¬¸ÃÃû×ÖΪ±¾µØ
Oracle
-ʵÁеÄÃû×Ö»òÕßÔÚ tnsnames.ora µÄÌõÄ¿ÖеÄÃû×Ö¡£
-Èç¹ûµÚ3¸ö²ÎÊýûÓж¨Ò壬 PHP ʹÓû·¾³±äÁ¿ ORACLE_SID (Oracle
ʵÁÐ)
-»ò TWO_TASK (tnsnames.ora) À´È·¶¨Á¬½ÓÄÄÒ»¸öÊý¾Ý¿â¡£
- </para>
- <para>µ±Ê¹Óà <function>ocilogon</function> µÄʱºò£¬
-Á¬½ÓÔÚҳˮƽÉϱ»¹²Ïí¡£
-ÕâÒâζ×ÅÌá½»ºÍ»Ø¹öÓ¦Óõ½¸ÃÒ³ËùÓпª·ÅµÄÊÂÎñ£¬ÉõÖÁÔÚÄãÒѾ´´½¨
-¶à¸öÁ¬½ÓµÄÇé¿öÏ¡£
- </para>
- <para>
-Õâ¸öÀý×ÓÑÝʾÁ¬½ÓÊÇÔõÑù±»¹²ÏíµÄ¡£
- <example>
- <title><function>ocilogon</function></title>
- <programlisting role="php">
-<![CDATA[
-<?php
-echo "<pre>";
-$db = "";
-
-$c1 = ocilogon("scott", "tiger", $db);
-$c2 = ocilogon("scott", "tiger", $db);
-
-function create_table($conn)
-{
- $stmt = ociparse($conn, "create table scott.hallo (test varchar2(64))");
- ociexecute($stmt);
- echo $conn . " created table\n\n";
-}
-
-function drop_table($conn)
-{
- $stmt = ociparse($conn, "drop table scott.hallo");
- ociexecute($stmt);
- echo $conn . " dropped table\n\n";
-}
-
-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);
- echo $conn . " inserted hallo\n\n";
-}
-
-function delete_data($conn)
-{
- $stmt = ociparse($conn, "delete from scott.hallo");
- ociexecute($stmt, OCI_DEFAULT);
- echo $conn . " deleted hallo\n\n";
-}
-
-function commit($conn)
-{
- ocicommit($conn);
- echo $conn . " committed\n\n";
-}
-
-function rollback($conn)
-{
- ocirollback($conn);
- echo $conn . " rollback\n\n";
-}
-
-function select_data($conn)
-{
- $stmt = ociparse($conn, "select * from scott.hallo");
- ociexecute($stmt, OCI_DEFAULT);
- echo $conn."----selecting\n\n";
- while (ocifetch($stmt)) {
- echo $conn . " [" . ociresult($stmt, "TEST") . "]\n\n";
- }
- echo $conn . "----done\n\n";
-}
-
-create_table($c1);
-insert_data($c1); // Insert a row using c1
-insert_data($c2); // Insert a row using c2
-
-select_data($c1); // Results of both inserts are returned
-select_data($c2);
-
-rollback($c1); // Rollback using c1
-
-select_data($c1); // Both inserts have been rolled back
-select_data($c2);
-
-insert_data($c2); // Insert a row using c2
-commit($c2); // Commit using c2
-
-select_data($c1); // Result of c2 insert is returned
-
-delete_data($c1); // Delete all rows in table using c1
-select_data($c1); // No rows returned
-select_data($c2); // No rows returned
-commit($c1); // Commit using c1
-
-select_data($c1); // No rows returned
-select_data($c2); // No rows returned
-
-drop_table($c1);
-echo "</pre>";
-?>
-]]>
- </programlisting>
- </example>
- </para>
- <simpara>
- ²Î¼û <function>ociplogon</function> ºÍ
- <function>ocinlogon</function>¡£</simpara>
- </refsect1>
- </refentry>
+<!-- $Revision: 1.4 $ -->
+<!-- $Author: dallas $ -->
+<!-- EN-Revision: 1.16 Maintainer: dallas Status: ready -->
+<refentry id="function.ocilogon">
+ <refnamediv>
+ <refname>ocilogon</refname>
+ <refpurpose><function>oci_connect</function> µÄ&Alias;</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <simpara>
+ &info.function.alias;<function>oci_connect</function>¡£
+ </simpara>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: