cvs: phpdoc-ja /appendices wrappers.xml /chapters tutorial.xml /reference/oci8 constants.xml

From: Date: Fri, 24 Mar 2006 22:57:16 +0000
Subject: cvs: phpdoc-ja /appendices wrappers.xml /chapters tutorial.xml /reference/oci8 constants.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1521@lists.php.net to get a copy of this message
takagi Fri Mar 24 22:57:16 2006 UTC Modified files: /phpdoc-ja/reference/oci8 constants.xml /phpdoc-ja/chapters tutorial.xml /phpdoc-ja/appendices wrappers.xml Log: sync with en.

http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/oci8/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/oci8/constants.xml diff -u phpdoc-ja/reference/oci8/constants.xml:1.2 phpdoc-ja/reference/oci8/constants.xml:1.3 --- phpdoc-ja/reference/oci8/constants.xml:1.2 Sun Sep 25 06:33:29 2005 +++ phpdoc-ja/reference/oci8/constants.xml Fri Mar 24 22:57:16 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> <section id="oci8.constants"> &reftitle.constants; &extension.constants; @@ -236,6 +236,156 @@ </varlistentry> <varlistentry> <term> + <constant>SQLT_NUM</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + NUMBER の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_INT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + INTEGER の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_AFC</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + CHAR の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_CHR</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + VARCHAR2 の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_VCS</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + VARCHAR の配列をバインドする際に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_AVC</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + CHARZ の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_STR</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + STRING の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_LVC</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + LONG VARCHAR の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_FLT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + FLOAT の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_LNG</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_ODT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + <function>oci_bind_array_by_name</function> で + LONG の配列をバインドする場合に使用されます。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_BDOUBLE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>SQLT_BFLOAT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>OCI_FETCHSTATEMENT_BY_COLUMN</constant> (<type>integer</type>) </term> @@ -252,7 +402,7 @@ </term> <listitem> <simpara> - <function>oci_fetch_all</function> での代わりのモードです。 + <function>oci_fetch_all</function> でのもうひとつのモードです。 </simpara> </listitem> </varlistentry> http://cvs.php.net/viewcvs.cgi/phpdoc-ja/chapters/tutorial.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-ja/chapters/tutorial.xml diff -u phpdoc-ja/chapters/tutorial.xml:1.15 phpdoc-ja/chapters/tutorial.xml:1.16 --- phpdoc-ja/chapters/tutorial.xml:1.15 Mon Jan 23 03:26:59 2006 +++ phpdoc-ja/chapters/tutorial.xml Fri Mar 24 22:57:16 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.41 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.42 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <chapter id="tutorial"> <title>簡易チュートリアル</title> @@ -88,7 +88,7 @@ <title>PHP Test</title> </head> <body> - <?php echo "<p>Hello World</p>"; ?> + <?php echo '<p>Hello World</p>'; ?> </body> </html> ]]> @@ -151,6 +151,20 @@ </para> <note> + <title>改行に関する注意</title> + <para> + HTML においては改行にはほとんど意味がありません。ただ、 + HTML の見栄えをよくするためにも適宜改行を入れておくとよいでしょう。 + <literal>?&gt;</literal> の直後の改行は、PHP によって取り除かれます。 + 複数の PHP ブロックを使用している場合や、 + 何かを出力するのかどうかがわからないファイルを include する際などに、 + この挙動は非常に便利です。と同時に少々混乱するかもしれません。 + 強制的に改行させるには、<literal>?&gt;</literal> の後に空白を置くか、 + あるいは PHP ブロック内の最後の echo/print で明示的に改行を出力します。 + </para> + </note> + + <note> <title>テキストエディタに関する注意</title> <para> PHPファイルを作成、編集、監理する際に使用できる、多くのテキストエディ http://cvs.php.net/viewcvs.cgi/phpdoc-ja/appendices/wrappers.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-ja/appendices/wrappers.xml diff -u phpdoc-ja/appendices/wrappers.xml:1.12 phpdoc-ja/appendices/wrappers.xml:1.13 --- phpdoc-ja/appendices/wrappers.xml:1.12 Wed Dec 7 03:54:52 2005 +++ phpdoc-ja/appendices/wrappers.xml Fri Mar 24 22:57:16 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.58 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.59 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <appendix id="wrappers"> <title>サポートされるプロトコル/ラッパー</title> @@ -372,6 +372,41 @@ のコンテキストオプションを参照ください。 </simpara> </note> + + <para> + バージョン 5 より前では、HTTP リクエストで独自のヘッダを送信することができます。 + これは INI 設定項目 <literal>user_agent</literal> + を処理する際の副作用によるものです。 + <literal>user_agent</literal> に何らかの正常な文字列 + (たとえばデフォルト設定の <literal>PHP/version</literal> など) + を指定し、さらに続けて + キャリッジリターン(\r) / ラインフィード(\n) + を置いた後に任意のヘッダを記述します。 + この方法は、PHP 4 以降のバージョンで動作します。 + </para> + <para> + <example> + <title>HTTP リクエストで独自のヘッダを送信する</title> + <programlisting role="php"> +<![CDATA[ +<?php +ini_set('user_agent', "PHP\r\nX-MyCustomHeader: Foo"); + +$fp = fopen('http://www.example.com/index.php', 'r'); +?> +]]> + </programlisting> + <para>送信されるリクエストは次のようになります。</para> + <screen> +<![CDATA[ +GET /index.php HTTP/1.0 +Host: www.example.com +User-Agent: PHP +X-MyCustomHeader: Foo +]]> + </screen> + </example> + </para> </section> <section id="wrappers.ftp">
« previous php.doc.ja (#1521) next »