cvs: phpdoc-ja /reference/info/functions dl.xml /reference/rar/functions rar-extract.xml /reference/strings/functions explode.xml

From: Date: Thu, 21 Sep 2006 03:56:50 +0000
Subject: cvs: phpdoc-ja /reference/info/functions dl.xml /reference/rar/functions rar-extract.xml /reference/strings/functions explode.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1615@lists.php.net to get a copy of this message
takagi Thu Sep 21 03:56:50 2006 UTC Modified files: /phpdoc-ja/reference/strings/functions explode.xml /phpdoc-ja/reference/rar/functions rar-extract.xml /phpdoc-ja/reference/info/functions dl.xml Log: sync with en. http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/explode.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/strings/functions/explode.xml diff -u phpdoc-ja/reference/strings/functions/explode.xml:1.6 phpdoc-ja/reference/strings/functions/explode.xml:1.7 --- phpdoc-ja/reference/strings/functions/explode.xml:1.6 Tue Mar 14 03:34:32 2006 +++ phpdoc-ja/reference/strings/functions/explode.xml Thu Sep 21 03:56:50 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.13 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.explode"> <refnamediv> @@ -12,24 +12,24 @@ <title>説明</title> <methodsynopsis> <type>array</type><methodname>explode</methodname> - <methodparam><type>string</type><parameter>separator</parameter></methodparam> + <methodparam><type>string</type><parameter>delimiter</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>limit</parameter></methodparam> </methodsynopsis> <para> 文字列の配列を返します。この配列の各要素は、 <parameter>string</parameter> を文字列 - <parameter>separator</parameter> で区切った部分文字列となります。 + <parameter>delimiter</parameter> で区切った部分文字列となります。 <parameter>limit</parameter> が指定された場合、返される配列には 最大 <parameter>limit</parameter> の要素が含まれ、その最後の要素には <parameter>string</parameter> の残りの部分が全て含まれます。 </para> <para> - 空の文字列("")が<parameter>separator</parameter> として使用された - 場合、<function>explode</function> は &false;を - 返します。<parameter>separator</parameter> に引数 - <parameter>string</parameter>に含まれていない値が含まれている場合、 - <function>explode</function>は、引数<parameter>string</parameter> + 空の文字列 ("") が <parameter>delimiter</parameter> として使用された場合、 + <function>explode</function> は &false; + を返します。<parameter>delimiter</parameter> に引数 + <parameter>string</parameter> に含まれていない値が含まれている場合、 + <function>explode</function> は、引数 <parameter>string</parameter> を返します。 </para> <para> @@ -42,12 +42,11 @@ はいずれのパラメータ順も受け入れることができますが、 <function>explode</function> はそうできません。 <parameter>string</parameter> 引数の前に必ず - <parameter>separator</parameter> 引数がくるように確認する必要があります。 + <parameter>delimiter</parameter> 引数がくるように確認する必要があります。 </para> <note> <para> - パラメータ <parameter>limit</parameter> は、PHP 4.0.1 で追加され - ました。 + パラメータ <parameter>limit</parameter> は、PHP 4.0.1 で追加されました。 </para> </note> <para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/rar/functions/rar-extract.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/rar/functions/rar-extract.xml diff -u phpdoc-ja/reference/rar/functions/rar-extract.xml:1.1 phpdoc-ja/reference/rar/functions/rar-extract.xml:1.2 --- phpdoc-ja/reference/rar/functions/rar-extract.xml:1.1 Fri Aug 19 08:31:17 2005 +++ phpdoc-ja/reference/rar/functions/rar-extract.xml Thu Sep 21 03:56:50 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="function.Rar-extract"> <refnamediv> <refname>Rar::extract</refname> @@ -39,6 +39,29 @@ ]]> </programlisting> </example> + <example> + <title>アーカイブ内のすべてのファイルを展開する方法</title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* erix こと Erik Jenssen によるサンプルです */ + +$filename = "foobar.rar"; +$filepath = "/home/foo/bar/"; + +$rar_file = rar_open($filepath.$filename); +$list = rar_list($rar_file); +foreach($list as $file) { + $entry = rar_entry_get($rar_file, $file); + $entry->extract("."); // カレントディレクトリに展開します +} +rar_close($rar_file); + +?> +]]> + </programlisting> + </example> <para> &return.success; </para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/info/functions/dl.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-ja/reference/info/functions/dl.xml diff -u phpdoc-ja/reference/info/functions/dl.xml:1.7 phpdoc-ja/reference/info/functions/dl.xml:1.8 --- phpdoc-ja/reference/info/functions/dl.xml:1.7 Sun Jun 11 19:54:23 2006 +++ phpdoc-ja/reference/info/functions/dl.xml Thu Sep 21 03:56:50 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.22 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.23 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry id="function.dl"> <refnamediv> @@ -41,9 +41,10 @@ <function>dl</function> でロードされたものも)。 </para> <para> - <function>dl</function> 関数は、PHP 5 では非推奨です。 - <link linkend="ini.extension">Extension Loading Directives</link> - メソッドをかわりに利用してください。 + PHP 5 では、<acronym>CLI</acronym> <emphasis>以外の</emphasis> + あらゆる SAPI において <function>dl</function> 関数が非推奨となっています。 + 代わりに、<link linkend="ini.extension">拡張モジュール + 読み込み用のディレクティブ</link>を利用してください。 </para> <example> <title><function>dl</function> の例</title>

« previous php.doc.ja (#1615) next »