Date: 06/25/00
- Next message: Egon Schmid: "[PHPDOC] cvs: phpdoc /de/functions info.xml /en/functions info.xml /it/functions info.xml /ja/functions info.xml"
- Previous message: Sterling Hughes: "Re: [PHPDOC] please help !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hirokawa Sun Jun 25 06:25:53 2000 EDT
Modified files:
/phpdoc/ja/functions bc.xml mcrypt.xml mhash.xml nis.xml oci8.xml
pcre.xml regex.xml var.xml zlib.xml
Log:
some cosmetic changes.
Index: phpdoc/ja/functions/bc.xml
diff -u phpdoc/ja/functions/bc.xml:1.2 phpdoc/ja/functions/bc.xml:1.3
--- phpdoc/ja/functions/bc.xml:1.2 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/bc.xml Sun Jun 25 06:25:53 2000
@@ -1,16 +1,18 @@
<reference id="ref.bc">
- <title>任意精度数学関数</title>
+ <title>BCMath任意精度数学関数</title>
<titleabbrev>BC math</titleabbrev>
<partintro>
- <simpara>
- これらの関数は、PHP が <option role="configure">--enable-bcmath</option> 構成オプションによりコンパイルされている場合にのみ使用できます。</simpara>
+ <simpara>
+ これらの関数は、PHPが構築オプション<option role="configure">--enable-bcmath
+ </option>を付けてコンパイルされている場合にのみ使用できます。
+ </simpara>
</partintro>
<refentry id="function.bcadd">
<refnamediv>
<refname>bcadd</refname>
- <refpurpose>2 つの任意精度の数値による加算</refpurpose>
+ <refpurpose>2つの任意精度の数値による加算</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
@@ -22,14 +24,15 @@
<paramdef>int <parameter><optional>scale</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
-
<para>
- <parameter>left operand</parameter> を <parameter>right operand
- </parameter> に加算して、その合計を文字列で返します。
- オプションの <parameter>scale</parameter> パラメータは、結果における
- 小数点以下の桁数を指定するために使用します。</para>
+ <parameter>left operand</parameter> を <parameter>right operand
+ </parameter> に加算して、その合計を文字列で返します。
+ オプションの <parameter>scale</parameter> パラメータは、結果における
+ 小数点以下の桁数を指定するために使用します。
+ </para>
<para>
- 参照:<function>bcsub</function></para>
+ 参照:<function>bcsub</function>
+ </para>
</refsect1>
</refentry>
@@ -48,24 +51,21 @@
<paramdef>int <parameter><optional>scale</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
-
<para>
- <parameter>left operand</parameter> を <parameter>right operand
- </parameter> と比較して、その結果を整数で返します。
- オプションの <parameter>scale</parameter> パラメータは、結果における
- 小数点以下の桁数を指定するために使用します。
- オプションの
- 2 つのオペランドが
- 等しければ返り値は 0 となります。<parameter>left operand</parameter>
- が <parameter>right operand</parameter> より大きければ返り値は +1
- になり、小さければ -1 になります。</para>
+ <parameter>left operand</parameter> を <parameter>right operand
+ </parameter>と比較して、その結果を整数で返します。
+ オプションの<parameter>scale</parameter>パラメータは、結果における
+ 小数点以下の桁数を指定するために使用します。
+ オプションの2つのオペランドが等しければ返り値は0となります。
+ <parameter>left operand</parameter>が<parameter>right operand</parameter>
+ より大きければ返り値は +1になり、小さければ -1 になります。</para>
</refsect1>
</refentry>
<refentry id="function.bcdiv">
<refnamediv>
<refname>bcdiv</refname>
- <refpurpose>2 つの任意精度数値による除算</refpurpose>
+ <refpurpose>2つの任意精度数値による除算</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
@@ -77,16 +77,15 @@
<paramdef>int <parameter><optional>scale</optional></parameter></paramdef>
</funcprototype>
</funcsynopsis>
-
<para>
- <parameter>left operand</parameter> を <parameter>right operand
- </parameter> で除算して、その結果を返します。
- オプションの <parameter>scale</parameter> パラメータは、結果における
- 小数点以下の桁数を指定するために使用します。</para>
-
+ <parameter>left operand</parameter>を<parameter>right operand
+ </parameter>で除算して、その結果を返します。
+ オプションの<parameter>scale</parameter>パラメータは、結果における
+ 小数点以下の桁数を指定するために使用します。
+ </para>
<para>
- 参照:<function>bcmul</function></para>
-
+ 参照:<function>bcmul</function>
+ </para>
</refsect1>
</refentry>
@@ -106,16 +105,18 @@
</funcsynopsis>
<para>
<parameter>modulus</parameter> で <parameter>left operand
- </parameter> を割った余りを求めます。</para>
+ </parameter>を割った余りを求めます。
+ </para>
<para>
- 参照:<function>bcdiv</function></para>
+ 参照:<function>bcdiv</function>
+ </para>
</refsect1>
</refentry>
<refentry id="function.bcmul">
<refnamediv>
<refname>bcmul</refname>
- <refpurpose>2 つの任意精度数値による乗算</refpurpose>
+ <refpurpose>2つの任意精度数値による乗算</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
@@ -243,7 +244,7 @@
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
-sgml-default-dtd-file:"../manual.ced"
+sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
Index: phpdoc/ja/functions/mcrypt.xml
diff -u phpdoc/ja/functions/mcrypt.xml:1.3 phpdoc/ja/functions/mcrypt.xml:1.4
--- phpdoc/ja/functions/mcrypt.xml:1.3 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/mcrypt.xml Sun Jun 25 06:25:53 2000
@@ -1,5 +1,5 @@
<reference id="ref.mcrypt">
- <title>暗号化関数</title>
+ <title>Mcrypt暗号化関数</title>
<titleabbrev>mcrypt</titleabbrev>
<partintro>
@@ -37,7 +37,7 @@
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
-$encrypted_data = mcrypt_ecb(MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT);
+$encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT);
?>
</programlisting>
</example>
@@ -45,7 +45,7 @@
返されます。
</para>
<para>
- mcrypt は、4つの暗号化モード (CBC, OFB, CFB, ECB) で実行可能です。
+ mcryptは4つの暗号化モード(CBC, OFB, CFB, ECB)で実行可能です。
ここで、これらの各モードの通常の使用法の概要を示します。
詳細なリファレンスおよび議論に関しては、
&book.applied.cryptography; を参照下さい。
Index: phpdoc/ja/functions/mhash.xml
diff -u phpdoc/ja/functions/mhash.xml:1.2 phpdoc/ja/functions/mhash.xml:1.3
--- phpdoc/ja/functions/mhash.xml:1.2 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/mhash.xml Sun Jun 25 06:25:53 2000
@@ -1,39 +1,38 @@
<reference id="ref.mhash">
- <title>ハッシュ関数</title>
+ <title>Mhash関数</title>
<titleabbrev>mhash</titleabbrev>
<partintro>
<para>
- これらの関数は、
- <ulink url="&url.mhash;">mhash</ulink> と組み合わせて動作することを
- 前提としています。</para>
-
- <para>
- この関数は、mhash ライブラリへのインターフェースです。
- mhash は、MD5, SHAl, GOST や他の多くの方法といった広範なハッシュ
- アルゴリズムをサポートします。</para>
-
+ これらの関数は、<ulink url="&url.mhash;">mhash</ulink>と組み合わせ
+ て動作することを前提としています。
+ </para>
+ <para>
+ この関数は、mhashライブラリへのインターフェースです。
+ mhashは、MD5,SHAl,GOSTや他の多くの方法といった広範なハッシュ
+ アルゴリズムをサポートします。
+ </para>
<para>
- これを使用するには、mhash の配布ファイルを
- <ulink url="&url.mhash;">mhash の Web サイト</ulink> から
+ これを使用するには、mhashの配布ファイルを
+ <ulink url="&url.mhash;">mhashのWebサイト</ulink>から
ダウンロードし、その中のインストール用の指示に従って下さい。
- この拡張機能を使用するには、PHP に
- <option role="configure">--with-mhash</option> パラメータを付けて
- コンパイルする必要があります。</para>
-
+ この拡張機能を使用するには、PHPに
+ <option role="configure">--with-mhash</option>パラメータを付けて
+ コンパイルする必要があります。
+ </para>
<para>
mhash は、チェックサム, メッセージダイジェスト等を作成するために
- 使用可能です。</para>
-
+ 使用可能です。
+ </para>
<para>
<example>
- <title>SHA1 キーを計算し、16進数で出力する</title>
+ <title>SHA1キーを計算し、16進数で出力する</title>
<programlisting role="php">
<?php
$input = "Let us meet at 9 o' clock at the secret place.";
-$hash = mhash(MHASH_SHA1, $input);
+$hash = mhash (MHASH_SHA1, $input);
-print "ハッシュは、".bin2hex($hash)." です。\n";
+print "ハッシュは、".bin2hex ($hash)." です。\n";
?>
</programlisting>
@@ -44,43 +43,71 @@
<programlisting>
ハッシュは、 d3b85d710d8f6e4e5efd4d5e67d041f9cecedafe です。
</programlisting>
-
- サポートされるハッシュの完全なリストについては、
- mhash のドキュメントを参照下さい。
- PHP から特定のハッシュアルゴリズムにアクセスするには、
- 「MHASH_ハッシュ名」を指定します。例えば、HAVAL にアクセスするには、
- PHP 定数 MHASH_HAVAL を使用します。</para>
- <para>
- 以下に現在 mhash によりサポートされているハッシュの一覧を示します。
- mhash にサポートされているハッシュが、このリストにない場合は、
- このドキュメントが古いと仮定して下さい。
-
+ サポートされるハッシュの完全なリストについては、mhashのドキュメントを
+ 参照下さい。
+ PHPから特定のハッシュアルゴリズムにアクセスするには、「MHASH_ハッシュ名」
+ を指定します。例えば、HAVALにアクセスするには、PHP定数MHASH_HAVAL
+ を使用します。
+ </para>
+ <para>
+ 以下に現在mhashによりサポートされているハッシュの一覧を示します。
+ mhashにサポートされているハッシュが、このリストにない場合は、
+ このドキュメントが古いと仮定して下さい。
<itemizedlist>
-
- <listitem><simpara>
- MHASH_MD5</simpara></listitem>
- <listitem><simpara>
- MHASH_SHA1</simpara></listitem>
- <listitem><simpara>
- MHASH_HAVAL</simpara></listitem>
- <listitem><simpara>
- MHASH_RIPEMD160</simpara></listitem>
- <listitem><simpara>
- MHASH_RIPEMD128</simpara></listitem>
- <listitem><simpara>
- MHASH_SNEFRU</simpara></listitem>
- <listitem><simpara>
- MHASH_TIGER</simpara></listitem>
- <listitem><simpara>
- MHASH_GOST</simpara></listitem>
- <listitem><simpara>
- MHASH_CRC32</simpara></listitem>
- <listitem><simpara>
- MHASH_CRC32B</simpara></listitem>
-
- </itemizedlist></para>
+ <listitem>
+ <simpara>
+ MHASH_MD5
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_SHA1
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_HAVAL
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_RIPEMD160
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_RIPEMD128
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_SNEFRU
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_TIGER
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_GOST
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_CRC32
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ MHASH_CRC32B
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </para>
</partintro>
<refentry id="function.mhash-get-hash-name">
@@ -96,33 +123,31 @@
<paramdef>int <parameter>hash</parameter></paramdef>
</funcprototype>
</funcsynopsis>
-
<para>
- <function>mhash_get_hash_name</function> は指定した(hash)の
- 名前を得るために使用されます。</para>
-
+ <function>mhash_get_hash_name</function>は指定した(hash)の
+ 名前を得るために使用されます。
+ </para>
<para>
- <function>mhash_get_hash_name</function> は引数としてハッシュIDをとり、
+ <function>mhash_get_hash_name</function>は引数としてハッシュIDをとり、
ハッシュの名前を返します。そのハッシュが存在しない場合は、falseを
- 返します。</para>
-
+ 返します。
+ </para>
<para>
<example>
- <title>mhash_get_hash_name の例</title>
+ <title><function>mhash_get_hash_name</function>の例</title>
<programlisting>
<?php
$hash = MHASH_MD5;
-print mhash_get_hash_name($hash);
+print mhash_get_hash_name ($hash);
?>
</programlisting>
</example>
-
上の例の出力は次のようになります。
<programlisting>
MD5
- </programlisting></para>
-
+ </programlisting>
+ </para>
</refsect1>
</refentry>
@@ -139,17 +164,16 @@
<paramdef>int <parameter>hash</parameter></paramdef>
</funcprototype>
</funcsynopsis>
-
- <para>
- <function>mhash_get_block_size</function> は、
- 指定した <parameter>hash</parameter> のブロックサイズを得るために
- 使用します。</para>
-
<para>
- <function>mhash_get_block_size</function> は、引数
- <parameter>hash</parameter> をとり、サイズをバイト数で返します。
- <parameter>hash</parameter> が存在しない場合には、false を返します。</para>
-
+ <function>mhash_get_block_size</function>は、
+ 指定した<parameter>hash</parameter>のブロックサイズを得るために
+ 使用します。
+ </para>
+ <para>
+ <function>mhash_get_block_size</function>は、引数
+ <parameter>hash</parameter>をとり、サイズをバイト数で返します。
+ <parameter>hash</parameter>が存在しない場合には、falseを返します。
+ </para>
</refsect1>
</refentry>
@@ -166,29 +190,27 @@
<paramdef>void </paramdef>
</funcprototype>
</funcsynopsis>
-
<para>
<function>mhash_count</function> は、利用可能なハッシュIDの最大値を
- 返します。
- ハッシュは、0 からこのハッシュIDまでのすうじとなります。</para>
-
+ 返します。ハッシュは、0からこのハッシュIDまでの数字となります。
+ </para>
<para>
<example>
<title>全ハッシュをループする</title>
- <programlisting>
+ <programlisting role="php">
<?php
$nr = mhash_count();
-for($i = 0; $i <= $nr; $i++) {
- echo sprintf("The blocksize of %s is %d\n",
- mhash_get_hash_name($i),
- mhash_get_block_size($i));
+for ($i = 0; $i <= $nr; $i++) {
+ echo sprintf ("The blocksize of %s is %d\n",
+ mhash_get_hash_name ($i),
+ mhash_get_block_size ($i));
}
?>
</programlisting>
- </example></para>
-
+ </example>
+ </para>
</refsect1>
</refentry>
@@ -206,12 +228,11 @@
<paramdef>string <parameter>data</parameter></paramdef>
</funcprototype>
</funcsynopsis>
-
<para>
- <function>mhash</function> は、<parameter>data</parameter> に
- <parameter>hash</parameter> で指定したハッシュ関数を適用し、
- (ダイジェストとも呼ばれる)ハッシュを返します。</para>
-
+ <function>mhash</function>は、<parameter>data</parameter>に
+ <parameter>hash</parameter>で指定したハッシュ関数を適用し、
+ (ダイジェストとも呼ばれる)ハッシュを返します。
+ </para>
</refsect1>
</refentry>
@@ -227,7 +248,7 @@
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
-sgml-default-dtd-file:"../manual.ced"
+sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
Index: phpdoc/ja/functions/nis.xml
diff -u phpdoc/ja/functions/nis.xml:1.4 phpdoc/ja/functions/nis.xml:1.5
--- phpdoc/ja/functions/nis.xml:1.4 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/nis.xml Sun Jun 25 06:25:53 2000
@@ -1,6 +1,6 @@
<reference id="ref.nis">
- <title>NIS 関数</title>
- <titleabbrev>NIS</titleabbrev>
+ <title>YP/NIS関数</title>
+ <titleabbrev>YP/NIS</titleabbrev>
<partintro>
<para>
Index: phpdoc/ja/functions/oci8.xml
diff -u phpdoc/ja/functions/oci8.xml:1.3 phpdoc/ja/functions/oci8.xml:1.4
--- phpdoc/ja/functions/oci8.xml:1.3 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/oci8.xml Sun Jun 25 06:25:53 2000
@@ -7,13 +7,15 @@
以下の関数により Oracle8 および Oracle7 データベースへのアクセスが
可能となります。
この関数は、Oracle8 Call-Interface (OCI8) を使用します。
- この拡張機能を使用するには、Oracle8 クライアントライブラリが必要です。</simpara>
+ この拡張機能を使用するには、Oracle8 クライアントライブラリが必要です。
+ </simpara>
<simpara>
- この拡張機能は、通常のOracle拡張機能より柔軟性があります。
- この拡張機能は、グローバルおよびローカルの PHP 変数の Ocacle
- プレースホルダーへのバインドをサポートします。
- この拡張機能は、LOB,FILE,ROWID を完全にサポートしており、ユーザー定義の
- 変数が使用可能です。</simpara>
+ この拡張機能は、通常のOracle拡張機能より柔軟性があります。
+ この拡張機能は、グローバルおよびローカルの PHP 変数の Ocacle
+ プレースホルダーへのバインドをサポートします。
+ この拡張機能は、LOB,FILE,ROWID を完全にサポートしており、ユーザー定義の
+ 変数が使用可能です。
+ </simpara>
</partintro>
<!--
@@ -370,10 +372,13 @@
<funcdef>int <function>OCINLogon</function></funcdef>
<paramdef>string <parameter>username</parameter></paramdef>
<paramdef>string <parameter>password</parameter></paramdef>
+ <paramdef>string
+ <parameter><optional>db</optional></parameter>
+ </paramdef>
</funcprototype>
- <paramdef>string <parameter><optional>db</optional></parameter></paramdef> </funcsynopsis>
+ </funcsynopsis>
<para>
- <function>OCINLogon</function> は、Oracle 8 データベースへの新規接続を
+ <function>OCINLogon</function>は、Oracle 8 データベースへの新規接続を
作成し、ログオンします。
オプションの3番目のパラメータには、ローカルOracleインスタンスの名前か
tnsnames.ora における接続先のエントリ名を指定することができます。
@@ -395,95 +400,108 @@
以下の例は、接続がどのように分割されるかを示すものです。
<example>
<title>OCINLogon</title>
- <programlisting>
+ <programlisting role="php">
<?php
print "<HTML><PRE>";
$db = "";
-$c1 = ocilogon("scott","tiger",$db);
-$c2 = ocinlogon("scott","tiger",$db);
+$c1 = ocilogon ("scott", "tiger", $db);
+$c2 = ocinlogon ("scott", "tiger", $db);
function create_table($conn)
-{ $stmt = ociparse($conn,"create table scott.hallo (test
-varchar2(64))");
- ociexecute($stmt);
+{
+ $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);
+{
+ $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);
+{
+ $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);
+{
+ $stmt = ociparse ($conn,"delete from scott.hallo");
+ ociexecute ($stmt,OCI_DEFAULT);
echo $conn." deleted hallo\n\n";
}
function commit($conn)
-{ ocicommit($conn);
+{
+ ocicommit($conn);
echo $conn." commited\n\n";
}
function rollback($conn)
-{ ocirollback($conn);
+{
+ ocirollback($conn);
echo $conn." rollback\n\n";
}
function select_data($conn)
-{ $stmt = ociparse($conn,"select * from scott.hallo");
- ociexecute($stmt,OCI_DEFAULT);
+{
+ $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);
+create_table ($c1);
+insert_data ($c1);
-select_data($c1);
-select_data($c2);
+select_data ($c1);
+select_data ($c2);
-rollback($c1);
+rollback ($c1);
-select_data($c1);
-select_data($c2);
+select_data ($c1);
+select_data ($c2);
-insert_data($c2);
-commit($c2);
+insert_data ($c2);
+commit ($c2);
-select_data($c1);
+select_data ($c1);
-delete_data($c1);
-select_data($c1);
-select_data($c2);
-commit($c1);
+delete_data ($c1);
+select_data ($c1);
+select_data ($c2);
+commit ($c1);
-select_data($c1);
-select_data($c2);
+select_data ($c1);
+select_data ($c2);
-drop_table($c1);
+drop_table ($c1);
print "</PRE></HTML>";
-?></programlisting></example></para>
+?>
+ </programlisting>
+ </example>
+ </para>
<simpara>
<function>OCILogon</function> および
- <function>OCIPLogon</function> も参照下さい。</simpara>
- </refsect1></refentry>
+ <function>OCIPLogon</function> も参照下さい。
+ </simpara>
+ </refsect1>
+ </refentry>
<refentry id="function.ocilogoff">
<refnamediv>
<refname>OCILogOff</refname>
- <refpurpose>Oracle との接続を切る</refpurpose>
+ <refpurpose>Oracleとの接続を切る</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
@@ -510,16 +528,17 @@
<funcprototype>
<funcdef>int <function>OCIExecute</function></funcdef>
<paramdef>int <parameter>statement</parameter></paramdef>
- <paramdef>int <parameter><optional>mode</optional></parameter></paramdef>
+ <paramdef>int
+ <parameter><optional>mode</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>OCIExecute</function> は以前処理された文を実行します。
- (<function>OCIParse</function> を参照下さい)
- オプションの <parameter>mode</parameter> により実行モードを指定することが可能とです。
- (デフォルトは OCI_COMMIT_ON_SUCCESS です)
- 自動的にコミットされたくない場合は、OCI_DEFAULT をモードとして指定します。
- your mode.
+ (<function>OCIParse</function> を参照下さい)
+ オプションの<parameter>mode</parameter>により実行モードを指定することが
+ 可能とです。(デフォルトはOCI_COMMIT_ON_SUCCESSです)
+ 自動的にコミットされたくない場合は、OCI_DEFAULTをモードとして指定します。
</para>
</refsect1>
</refentry>
@@ -538,10 +557,9 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCICommit</function> は、
- Oracle 接続 <parameter>connection</parameter> に関する
+ <function>OCICommit</function>は、
+ Oracle接続<parameter>connection</parameter>に関する
全ての未解決の文をコミットします。
-
</para>
</refsect1>
</refentry>
@@ -560,8 +578,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIRollback</function> は
- Oracle 接続 <parameter>connection</parameter> に関する
+ <function>OCIRollback</function>は、
+ Oracle接続<parameter>connection</parameter>に関する
全ての未解決の文をロールバックします。
</para>
</refsect1>
@@ -570,8 +588,9 @@
<refentry id="function.ocinewdescriptor">
<refnamediv>
<refname>OCINewDescriptor</refname>
- <refpurpose>空の新規ディスクリプタ LOB/FILE (LOB がデフォル)
- を初期化する</refpurpose>
+ <refpurpose>
+ 空の新規ディスクリプタLOB/FILE(LOBがデフォルト)を初期化する
+ </refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
@@ -579,22 +598,23 @@
<funcprototype>
<funcdef>string <function>OCINewDescriptor</function></funcdef>
<paramdef>int <parameter>connection</parameter></paramdef>
- <paramdef>int <parameter><optional>type</optional></parameter></paramdef>
+ <paramdef>int
+ <parameter><optional>type</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
<para>
<function>OCINewDescriptor</function> は、固定したディスクリプタまたは
- LOB ロケータに記憶領域を確保します。
+ LOBロケータに記憶領域を確保します。
<parameter>type</parameter> で指定可能な値は、OCI_D_FILE, OCI_D_LOB,
- OCI_D_ROWID です。
- LOB ディスクリプタの場合、メソッド load, save, savefile がディスクリプタに
+ OCI_D_ROWIDです。
+ LOBディスクリプタの場合、メソッドload, save, savefileがディスクリプタに
関連付けられています。BFILE の場合、load メソッドのみが存在します。2番目の
例に使用の際のヒントを示します。
-
</para>
- <example>
- <title>OCINewDescriptor</title>
- <programlisting>
+ <example>
+ <title>OCINewDescriptor</title>
+ <programlisting role="php">
<?php
/* このスクリプトは HTML フォームからコールされる前提で作成
* されており、$user, $passwor, $table, $where, $commitsize
@@ -623,7 +643,8 @@
OCIFreeStatement($stmt);
OCILogoff($conn);
?>
- </programlisting><programlisting>
+ </programlisting>
+ <programlisting>
<?php
/* このスクリプトやLOB カラムにファイルをアップロードする例を示します。
* LOBカラムにアップロードを行うこの例に関するフォームは、
@@ -655,8 +676,8 @@
OCILogoff($conn);
}
?>
- </programlisting></example>
-
+ </programlisting>
+ </example>
</refsect1>
</refentry>
@@ -679,7 +700,7 @@
<para>
<example>
<title>OCIRowCount</title>
- <programlisting>
+ <programlisting role="php">
<?php
print "<HTML><PRE>";
$conn = OCILogon("scott","tiger");
@@ -697,9 +718,11 @@
OCIFreeStatement($stmt);
OCILogOff($conn);
print "</PRE></HTML>";
-?> </programlisting></example></para>
-
- </refsect1>
+?>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
</refentry>
<refentry id="function.ocinumcols">
@@ -716,32 +739,34 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCINumCols</function> は、文におけるカラムの数を
- 返します。</para>
- <example>
- <title>OCINumCols</title>
- <programlisting>
+ <function>OCINumCols</function>は、文におけるカラムの数を
+ 返します。
+ </para>
+ <example>
+ <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) ) {
- print "\n";
- $ncols = OCINumCols($stmt);
- for ( $i = 1; $i <= $ncols; $i++ ) {
- $column_name = OCIColumnName($stmt,$i);
- $column_value = OCIResult($stmt,$i);
- print $column_name . ': ' . $column_value . "\n";
- }
- print "\n";
- }
- OCIFreeStatement($stmt);
- OCILogoff($conn);
- print "</PRE>";
- print "</HTML>\n";
-?> </programlisting></example>
-
+print "<HTML><PRE>\n";
+$conn = OCILogon ("scott", "tiger");
+$stmt = OCIParse ($conn,"select * from emp");
+OCIExecute ($stmt);
+while (OCIFetch ($stmt)) {
+ print "\n";
+ $ncols = OCINumCols ($stmt);
+ for ( $i = 1; $i <= $ncols; $i++ ) {
+ $column_name = OCIColumnName ($stmt, $i);
+ $column_value = OCIResult ($stmt, $i);
+ print $column_name . ': ' . $column_value . "\n";
+ }
+ print "\n";
+}
+OCIFreeStatement ($stmt);
+OCILogoff ($conn);
+print "</PRE>";
+print "</HTML>\n";
+?>
+ </programlisting>
+ </example>
</refsect1>
</refentry>
@@ -760,8 +785,9 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIResult</function> は現在の行におけるカラム <parameter>column</parameter> の
- データを返します。(<function>OCIFetch</function> 参照)
+ <function>OCIResult</function>は、現在の行におけるカラム
+ <parameter>column</parameter>のデータを返します。
+ (<function>OCIFetch</function>を参照)
<function>OCIResult</function> は抽象型(ROWID, LOB, FILE)を除き、
全て文字列として値を返します。
</para>
@@ -782,7 +808,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFetch</function> は (SELECT 文の) 次の行を内部結果バッファに取得します。
+ <function>OCIFetch</function>は、(SELECT文の)次の行を内部結果バッファ
+ に取得します。
</para>
</refsect1>
</refentry>
@@ -803,18 +830,18 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFetchInto</function> は(SELECT 文の)次の行を <parameter>result</parameter>
+ <function>OCIFetchInto</function>は(SELECT 文の)次の行を<parameter>result</parameter>
配列に取得します。
<function>OCIFetchInto</function> は、以前の <parameter>result</parameter> の内容を
上書きします。
デフォルトで <parameter>result</parameter> は NULL でない全カラムの1次元配列を
有します。
</para>
- <para>
- <parameter>mode</parameter> パラメータによりデフォルト動作の変更を可能となります。
- フラグを追加することにより簡単に一つ以上のフラグを指定することが可能です。
- (例 OCI_ASSOC+OCI_RETURN_NULLS)
- 指定可能なフラグを次に示します。
+ <para>
+ <parameter>mode</parameter>パラメータによりデフォルト動作の変更を可能となります。
+ フラグを追加することにより簡単に一つ以上のフラグを指定することが可能です。
+ (例 OCI_ASSOC+OCI_RETURN_NULLS)
+ 指定可能なフラグを次に示します。
<simplelist>
<member><literal>OCI_ASSOC</literal> 連想配列を返す。</member>
@@ -848,20 +875,20 @@
定義した配列に取得します。
<function>OCIFetchStatement</function> は取得した行の数を返します。
</para>
- <example>
- <title>OCIFetchStatement</title>
- <programlisting>
+ <example>
+ <title>OCIFetchStatement</title>
+ <programlisting role="php">
<?php
/* OCIFetchStatement example mbritton <email protected> (990624) */
-$conn = OCILogon("scott","tiger");
+$conn = OCILogon ("scott", "tiger");
-$stmt = OCIParse($conn,"select * from emp");
+$stmt = OCIParse ($conn, "select * from emp");
-OCIExecute($stmt);
+OCIExecute ($stmt);
-$nrows = OCIFetchStatement($stmt,$results);
-if ( $nrows > 0 ) {
+$nrows = OCIFetchStatement ($stmt,$results);
+if ($nrows > 0) {
print "<TABLE BORDER=\"1\">\n";
print "<TR>\n";
while ( list( $key, $val ) = each( $results ) ) {
@@ -870,9 +897,9 @@
print "</TR>\n";
for ( $i = 0; $i < $nrows; $i++ ) {
- reset($results);
+ reset ($results);
print "<TR>\n";
- while ( $column = each($results) ) {
+ while ( $column = each ($results) ) {
$data = $column['value'];
print "<TD>$data[$i]</TD>\n";
}
@@ -884,11 +911,12 @@
}
print "$nrows Records Selected<BR>\n";
-OCIFreeStatement($stmt);
-OCILogoff($conn);
+OCIFreeStatement ($stmt);
+OCILogoff ($conn);
-?></programlisting></example>
-
+?>
+ </programlisting>
+ </example>
</refsect1>
</refentry>
@@ -907,10 +935,10 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIColumnIsNULL</function> は、
- 文 <parameter>stmt</parameter> の結果として返されたカラム¥が NULL である
- 場合に TRUE を返します。
- <parameter>col</parameter> パラメータに(1 から始まる)カラム番号または
+ <function>OCIColumnIsNULL</function>は、
+ 文<parameter>stmt</parameter>の結果として返されたカラムがNULLである
+ 場合にTRUEを返します。
+ <parameter>col</parameter> パラメータに(1から始まる)カラム番号または
カラム名のどちらかを使用可能です。
</para>
</refsect1>
@@ -931,45 +959,49 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIColumnSize</function> は Oracle により指定されたカラムのサイズを
+ <function>OCIColumnSize</function>はOracleにより指定されたカラムのサイズを
返します。
- <parameter>col</parameter> パラメータに(1 から始まる)カラム番号または
+ <parameter>col</parameter>パラメータに(1から始まる)カラム番号または
カラム名のどちらかを使用可能です。
</para>
<para>
<example>
<title>OCIColumnSize</title>
- <programlisting>
+ <programlisting role="php">
<?php
- print "<HTML><PRE>\n";
- $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);
- for ( $i = 1; $i <= $ncols; $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);
- print "</PRE>";
- print "</HTML>\n";
-?> </programlisting></example></para>
+print "<HTML><PRE>\n";
+$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);
+for ( $i = 1; $i <= $ncols; $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);
+print "</PRE>";
+print "</HTML>\n";
+?>
+ </programlisting>
+ </example>
+ </para>
<simpara>
<function>OCINumCols</function>, <function>OCIColumnName</function>,
- <function>OCIColumnSize</function> も参照下さい。</simpara>
+ <function>OCIColumnSize</function> も参照下さい。
+ </simpara>
</refsect1>
</refentry>
@@ -989,13 +1021,15 @@
<para>
<example>
<title>OCIServerVersion</title>
- <programlisting>
+ <programlisting role="php">
<?php
- $conn = OCILogon("scott","tiger");
- print "Server Version: " . OCIServerVersion($conn);
- OCILogOff($conn);
-?></programlisting></example></para>
-
+$conn = OCILogon ("scott", "tiger");
+print "Server Version: " . OCIServerVersion($conn);
+OCILogOff ($conn);
+?>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
</refentry>
@@ -1015,96 +1049,142 @@
<para>
<function>OCIStatementType</function> は次の値のどれかを返します。
<orderedlist>
- <listitem><simpara> "SELECT"</simpara></listitem>
- <listitem><simpara> "UPDATE"</simpara></listitem>
- <listitem><simpara> "DELETE"</simpara></listitem>
- <listitem><simpara> "INSERT"</simpara></listitem>
- <listitem><simpara> "CREATE"</simpara></listitem>
- <listitem><simpara> "DROP"</simpara></listitem>
- <listitem><simpara> "ALTER"</simpara></listitem>
- <listitem><simpara> "BEGIN"</simpara></listitem>
- <listitem><simpara> "DECLARE"</simpara></listitem>
- <listitem><simpara> "UNKNOWN"</simpara></listitem>
- </orderedlist></para>
+ <listitem>
+ <simpara>
+ "SELECT"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "UPDATE"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "DELETE"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "INSERT"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "CREATE"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "DROP"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "ALTER"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "BEGIN"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "DECLARE"
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ "UNKNOWN"
+ </simpara>
+ </listitem>
+ </orderedlist>
+ </para>
<para>
<example>
<title>コーディング例</title>
- <programlisting>
+ <programlisting role="php">
<?php
- print "<HTML><PRE>";
- $conn = OCILogon("scott","tiger");
- $sql = "delete from emp where deptno = 10";
+print "<HTML><PRE>";
+$conn = OCILogon ("scott", "tiger");
+$sql = "delete from emp where deptno = 10";
- $stmt = OCIParse($conn,$sql);
- if ( OCIStatementType($stmt) == "DELETE" ) {
- die "You are not allowed to delete from this table<BR>";
- }
+$stmt = OCIParse ($conn,$sql);
+if (OCIStatementType ($stmt) == "DELETE" ) {
+ die "You are not allowed to delete from this table<BR>";
+}
- OCILogoff($conn);
- print "</PRE></HTML>";
+OCILogoff ($conn);
+print "</PRE></HTML>";
?>
-</programlisting></example></para>
-
+ </programlisting>
+ </example>
+ </para>
</refsect1>
- </refentry>
+ </refentry>
- <refentry id="function.ocinewcursor">
- <refnamediv>
- <refname>OCINewCursor</refname>
- <refpurpose>新規カーソル(命令ハンドル)を返す -
- 参照カーソルをバインドするために使用する!</refpurpose>
- </refnamediv>
- <refsect1>
- <title>説明</title>
- <funcsynopsis>
+ <refentry id="function.ocinewcursor">
+ <refnamediv>
+ <refname>OCINewCursor</refname>
+ <refpurpose>
+ 新規カーソル(命令ハンドル)を返す -
+ 参照カーソルをバインドするために使用する
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説明</title>
+ <funcsynopsis>
<funcprototype>
- <funcdef>int <function>OCINewCursor</function></funcdef>
- <paramdef>int <parameter>conn</parameter></paramdef>
+ <funcdef>int <function>OCINewCursor</function></funcdef>
+ <paramdef>int <parameter>conn</parameter></paramdef>
</funcprototype>
- </funcsynopsis>
- <para>
- <function>OCINewCursor</function> は、新規の命令ハンドル
- を指定した接続に確保します。
- </para>
- <para>
- <example>
- <title>ストアドプロシージャからの参照カーソルの使用例</title>
- <programlisting>
- <?php
- // ストアドプロシージャ info.output が :data の参照カーソルを返すと仮定する
+ </funcsynopsis>
+ <para>
+ <function>OCINewCursor</function> は、新規の命令ハンドル
+ を指定した接続に確保します。
+ </para>
+ <para>
+ <example>
+ <title>ストアドプロシージャからの参照カーソルの使用例</title>
+ <programlisting role="php">
+<?php
+// ストアドプロシージャ info.output が :data の参照カーソルを返すと仮定する
- $conn = OCILogon("scott","tiger");
- $curs = OCINewCursor($conn);
- $stmt = OCIParse($conn,"begin info.output(:data); end;");
+$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);
+ocibindbyname ($stmt,"data",&$curs,-1,OCI_B_CURSOR);
+ociexecute ($stmt);
+ociexecute ($curs);
- while (OCIFetchInto($curs,&$data)) {
- var_dump($data);
- }
+while (OCIFetchInto($curs,&$data)) {
+ var_dump($data);
+}
- OCIFreeCursor($stmt);
- OCIFreeStatement($curs);
- OCILogoff($conn);
- ?></programlisting></example></para>
-
- <para>
- <example>
- <title>select 文における参照カーソルの使用例</title>
- <programlisting>
- <?php
- print "<HTML><BODY>";
- $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");
+OCIFreeCursor ($stmt);
+OCIFreeStatement ($curs);
+OCILogoff ($conn);
+ ?>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ <example>
+ <title>select文における参照カーソルの使用例</title>
+ <programlisting role="php">
+<?php
+print "<HTML><BODY>";
+$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");
- ociexecute($stmt);
- print "<TABLE BORDER=\"1\">";
- print "<TR>";
- print "<TH>DEPT NAME</TH>";
+ociexecute ($stmt);
+print "<TABLE BORDER=\"1\">";
+print "<TR>";
+print "<TH>DEPT NAME</TH>";
print "<TH>DEPT #</TH>";
print "<TH># EMPLOYEES</TH>";
print "</TR>";
@@ -1126,8 +1206,10 @@
print "</BODY></HTML>";
OCIFreeStatement($stmt);
OCILogoff($conn);
-?></programlisting></example></para>
-
+?>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
</refentry>
@@ -1145,8 +1227,8 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFreeStatement</function> は成功時に true、失敗した場合に
- false を返します。
+ <function>OCIFreeStatement</function>は成功時にtrue、失敗した場合に
+ falseを返します。
</para>
</refsect1>
</refentry>
@@ -1165,189 +1247,202 @@
</funcprototype>
</funcsynopsis>
<para>
- <function>OCIFreeCursor</function> は成功時に true、失敗した時に
- false を返します。
+ <function>OCIFreeCursor</function>は成功時にtrue、失敗した時に
+ falseを返します。
</para>
</refsect1>
</refentry>
-
-
- <refentry id="function.ocicolumnname">
- <refnamediv>
- <refname>OCIColumnName</refname>
- <refpurpose>カラムの名前を返す</refpurpose>
- </refnamediv>
- <refsect1>
- <title>説明</title>
- <funcsynopsis>
+
+ <refentry id="function.ocicolumnname">
+ <refnamediv>
+ <refname>OCIColumnName</refname>
+ <refpurpose>カラムの名前を返す</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説明</title>
+ <funcsynopsis>
<funcprototype>
- <funcdef>string <function>OCIColumnName</function></funcdef>
- <paramdef>int <parameter>stmt</parameter></paramdef>
- <paramdef>int <parameter>col</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <simpara>
- <function>OCIColumnName</function> は指定した(1から始まる)カラム
- 番号に対応するカラムの名前を返します。</simpara>
-
- <para>
- <example>
- <title>OCIColumnName</title>
- <programlisting>
- <?php
- print "<HTML><PRE>\n";
- $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);
- for ( $i = 1; $i <= $ncols; $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);
- print "</PRE>";
- print "</HTML>\n";
- ?> </programlisting></example></para>
- <simpara>
- <function>OCINumCols</function>, <function>OCIColumnType</function>,
- <function>OCIColumnSize</function> も参照下さい。</simpara>
- </refsect1>
- </refentry>
-
- <refentry id="function.ocicolumntype">
- <refnamediv>
+ <funcdef>string <function>OCIColumnName</function></funcdef>
+ <paramdef>int <parameter>stmt</parameter></paramdef>
+ <paramdef>int <parameter>col</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <simpara>
+ <function>OCIColumnName</function> は指定した(1から始まる)カラム
+ 番号に対応するカラムの名前を返します。
+ </simpara>
+ <para>
+ <example>
+ <title>OCIColumnName</title>
+ <programlisting role="php">
+<?php
+print "<HTML><PRE>\n";
+$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);
+for ($i = 1; $i <= $ncols; $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);
+print "</PRE>";
+print "</HTML>\n";
+?>
+ </programlisting>
+ </example>
+ </para>
+ <simpara>
+ <function>OCINumCols</function>, <function>OCIColumnType</function>,
+ <function>OCIColumnSize</function>も参照下さい。
+ </simpara>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.ocicolumntype">
+ <refnamediv>
<refname>OCIColumnType</refname>
- <refpurpose>カラムのデータ型を返す</refpurpose>
- </refnamediv>
- <refsect1>
- <title>説明</title>
- <funcsynopsis>
+ <refpurpose>カラムのデータ型を返す</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説明</title>
+ <funcsynopsis>
<funcprototype>
- <funcdef>mixed <function>OCIColumnName</function></funcdef>
- <paramdef>int <parameter>stmt</parameter></paramdef>
- <paramdef>int <parameter>col</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <simpara>
- <function>OCIColumnType</function> は、指定した(1から始まる)カラム
- 番号に対応するカラムのデータ型を返します。</simpara>
-
- <para>
- <example>
- <title>OCIColumnType</title>
- <programlisting>
- <?php
- print "<HTML><PRE>\n";
- $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);
- for ( $i = 1; $i <= $ncols; $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);
- print "</PRE>";
- print "</HTML>\n";
- ?> </programlisting></example></para>
- <simpara>
+ <funcdef>mixed <function>OCIColumnName</function></funcdef>
+ <paramdef>int <parameter>stmt</parameter></paramdef>
+ <paramdef>int <parameter>col</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <simpara>
+ <function>OCIColumnType</function>は、指定した(1から始まる)カラム
+ 番号に対応するカラムのデータ型を返します。
+ </simpara>
+ <para>
+ <example>
+ <title>OCIColumnType</title>
+ <programlisting role="php">
+<?php
+ print "<HTML><PRE>\n";
+ $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);
+ for ( $i = 1; $i <= $ncols; $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);
+ print "</PRE>";
+ print "</HTML>\n";
+?>
+ </programlisting>
+ </example>
+ </para>
+ <simpara>
<function>OCINumCols</function>, <function>OCIColumnName</function>,
- <function>OCIColumnSize</function> も参照下さい。</simpara>
-
- </refsect1>
- </refentry>
+ <function>OCIColumnSize</function> も参照下さい。
+ </simpara>
+ </refsect1>
+ </refentry>
- <refentry id="function.ociparse">
- <refnamediv>
- <refname>OCIParse</refname>
- <refpurpose>クエリーを処理し、文を返す</refpurpose>
- </refnamediv>
- <refsect1>
- <title>説明</title>
- <funcsynopsis>
+ <refentry id="function.ociparse">
+ <refnamediv>
+ <refname>OCIParse</refname>
+ <refpurpose>クエリーを処理し、文を返す</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説明</title>
+ <funcsynopsis>
<funcprototype>
- <funcdef>int <function>OCIParse</function></funcdef>
- <paramdef>int <parameter>conn</parameter></paramdef>
- <paramdef>strint <parameter>query</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <simpara>
- <function>OCIParse</function> は、<parameter>conn</parameter> を
- 使用して <parameter>query</parameter> を処理します。
- クエリーが有効な場合に true、無効な場合に false を返します。
- <parameter>query</parameter> は、有効な SQL 文である必要があります。</simpara>
+ <funcdef>int <function>OCIParse</function></funcdef>
+ <paramdef>int <parameter>conn</parameter></paramdef>
+ <paramdef>strint <parameter>query</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <simpara>
+ <function>OCIParse</function>は、<parameter>conn</parameter>を
+ 使用して<parameter>query</parameter>を処理します。
+ クエリーが有効な場合にtrue、無効な場合にfalseを返します。
+ <parameter>query</parameter>は、有効なSQL文である必要があります。
+ </simpara>
</refsect1>
</refentry>
- <refentry id="function.ocierror">
- <refnamediv>
- <refname>OCIError</refname>
- <refpurpose>stmt|conn|global に関する直近のエラーを返す。
+ <refentry id="function.ocierror">
+ <refnamediv>
+ <refname>OCIError</refname>
+ <refpurpose>
+ stmt|conn|globalに関する直近のエラーを返す。
エラーが生じていない場合はfalseを返す。
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>説明</title>
- <funcsynopsis>
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>説明</title>
+ <funcsynopsis>
<funcprototype>
- <funcdef>int <function>OCIError</function></funcdef>
- <paramdef>int <parameter><optional>stmt|conn</optional></parameter></paramdef>
+ <funcdef>int <function>OCIError</function></funcdef>
+ <paramdef>int
+ <parameter><optional>stmt|conn</optional></parameter>
+ </paramdef>
</funcprototype>
- </funcsynopsis>
- <simpara>
- <function>OCIError</function> は、直近のエラーを返します。
- オプションの <parameter>stmt|conn</parameter> が指定されない場合、
- 直近のエラーが返されます。
- エラーが見つからない場合、
- <function>OCIError</function> は false を返します。</simpara>
- </refsect1>
- </refentry>
-
- <refentry id="function.ociinternaldebug">
- <refnamediv>
- <refname>OCIInternalDebug</refname>
- <refpurpose>内部デバッグ用出力有効または無効にする。デフォルトでは無効</refpurpose>
- </refnamediv>
+ </funcsynopsis>
+ <simpara>
+ <function>OCIError</function>は、直近のエラーを返します。
+ オプションの <parameter>stmt|conn</parameter>が指定されない場合、
+ 直近のエラーが返されます。エラーが見つからない場合、
+ <function>OCIError</function>はfalseを返します。
+ </simpara>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.ociinternaldebug">
+ <refnamediv>
+ <refname>OCIInternalDebug</refname>
+ <refpurpose>
+ 内部デバッグ用出力有効または無効にする。デフォルトでは無効
+ </refpurpose>
+ </refnamediv>
<refsect1>
- <title>説明</title>
- <funcsynopsis>
+ <title>説明</title>
+ <funcsynopsis>
<funcprototype>
- <funcdef>void <function>OCIInternalDebug</function></funcdef>
- <paramdef>int <parameter>onoff</parameter></paramdef>
+ <funcdef>void <function>OCIInternalDebug</function></funcdef>
+ <paramdef>int <parameter>onoff</parameter></paramdef>
</funcprototype>
- </funcsynopsis>
- <simpara>
- <function>OCIInternalDebug</function> は内部デバッグ用出力を
- 有効にします。デバッグ出力をオフにする場合は 0、
- オンにする場合は 1 を <parameter>onoff</parameter> に設定します。</simpara>
- </refsect1>
- </refentry>
+ </funcsynopsis>
+ <simpara>
+ <function>OCIInternalDebug</function>は内部デバッグ用出力を
+ 有効にします。デバッグ出力をオフにする場合は0、
+ オンにする場合は1を<parameter>onoff</parameter>に設定します。
+ </simpara>
+ </refsect1>
+ </refentry>
</reference>
<!-- Keep this comment at the end of the file
@@ -1360,7 +1455,7 @@
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
-sgml-default-dtd-file:"../manual.ced"
+sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
Index: phpdoc/ja/functions/pcre.xml
diff -u phpdoc/ja/functions/pcre.xml:1.2 phpdoc/ja/functions/pcre.xml:1.3
--- phpdoc/ja/functions/pcre.xml:1.2 Sat Jun 24 00:38:44 2000
+++ phpdoc/ja/functions/pcre.xml Sun Jun 25 06:25:53 2000
@@ -1,21 +1,21 @@
<reference id="ref.pcre">
- <title>Perl 互換の正規表現関数</title>
+ <title>Perl互換の正規表現関数</title>
<titleabbrev>PCRE</titleabbrev>
<partintro>
<para>
- この関数で使用されるパターンに関する構文は、Perl に非常によく似ています。
- 表現は、デリミタ、例えばスラッシュ (/) で囲まれる必要があります。
- 英数字またはバックスラッシュ(\)以外の全ての文字をデリミタとして
- 使用可能です。デリミタ文字を正規表現本体において使用する必要がある場合は、
- バックスラッシュでエスケープする必要があります。</para>
-
+ この関数で使用されるパターンに関する構文は、Perl に非常によく似ています。
+ 表現は、デリミタ、例えばスラッシュ (/) で囲まれる必要があります。
+ 英数字またはバックスラッシュ(\)以外の全ての文字をデリミタとして
+ 使用可能です。デリミタ文字を正規表現本体において使用する必要がある場合は、
+ バックスラッシュでエスケープする必要があります。
+ </para>
<para>
- マッチングに影響を与える様々な修正子を終端デリミタの後に付ける
- ことができます。
+ マッチングに影響を与える様々な修正子を終端デリミタの後に付ける
+ ことができます。
<link linkend="pcre.pattern.modifiers">パターン修正子</link>
- を参照下さい。</para>
-
+ を参照下さい。
+ </para>
<para>
<example>
<title>有効なパターンの例</title>
@@ -30,12 +30,29 @@
<example>
<title>無効なパターンの例</title>
<itemizedlist>
- <listitem><simpara>/href='(.*)' - 終端デリミタが抜けている</simpara></listitem>
- <listitem><simpara>/\w+\s*\w+/J - 未知の修正子 'J'</simpara></listitem>
- <listitem><simpara>1-\d3-\d3-\d4| - 始端デリミタが抜けている
- </simpara></listitem>
+ <listitem>
+ <simpara>
+ /href='(.*)' - 終端デリミタが抜けている
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ /\w+\s*\w+/J - 未知の修正子 'J'
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ 1-\d3-\d3-\d4| - 始端デリミタが抜けている
+ </simpara>
+ </listitem>
</itemizedlist>
- </example></para>
+ </example>
+ </para>
+ <note>
+ <simpara>
+ Perl互換の正規表現関数は、PHP4およびPHP3.0.9以降で利用可能です。
+ </simpara>
+ </note>
</partintro>
<refentry id="function.preg-match">
@@ -50,38 +67,41 @@
<funcdef>int <function>preg_match</function></funcdef>
<paramdef>string <parameter>pattern</parameter></paramdef>
<paramdef>string <parameter>subject</parameter></paramdef>
- <paramdef>array <parameter><optional>matches</optional></parameter></paramdef>
+ <paramdef>array
+ <parameter><optional>matches</optional></parameter>
+ </paramdef>
</funcprototype>
</funcsynopsis>
- <para>
- <parameter>pattern</parameter> で指定した正規表現により
- <parameter>subject</parameter> を検索します。</para>
-
<para>
- <parameter>matches</parameter> が与えられた場合、検索結果が代入されます。
- $matches[0] はパターン全体にマッチしたテキストが代入され、
- $matches[1] は最初の括弧付きのサブパターンにマッチしたテキスト
- が代入され、といったようになります。</para>
-
+ <parameter>pattern</parameter>で指定した正規表現により
+ <parameter>subject</parameter>を検索します。
+ </para>
+ <para>
+ <parameter>matches</parameter>が指定された場合、検索結果が代入されます。
+ $matches[0]はパターン全体にマッチしたテキストが代入され、
+ $matches[1]は最初の括弧付きのサブパターンにマッチしたテキスト
+ が代入され、といったようになります。
+ </para>
+ <para>
+ 文字列subjectに<parameter>pattern</parameter>がマッチした場合は
+ trueを返し、マッチしなかったか、エラーを発生した場合にfalseを
+ 返し

