hirokawa                Thu Mar 22 07:48:06 2001 EDT

  Modified files:              
    /phpdoc/ja/chapters install.xml 
    /phpdoc/ja/functions        datetime.xml info.xml nis.xml pdf.xml 
                                strings.xml var.xml 
  Log:
  update translation.
  
Index: phpdoc/ja/chapters/install.xml
diff -u phpdoc/ja/chapters/install.xml:1.28 phpdoc/ja/chapters/install.xml:1.29
--- phpdoc/ja/chapters/install.xml:1.28 Sun Mar 18 08:36:45 2001
+++ phpdoc/ja/chapters/install.xml      Thu Mar 22 07:48:04 2001
@@ -3587,10 +3587,43 @@
   .htmlを選択することも可能です。
 
 18. 通常の手順により Apache 
サーバを起動して下さい。(HUPまたはUSR1シグ
-    
ナルを使用してリロードするのではなく)サーバを停止してから再起動す
-    る必要があります。
+      
+ナルを使用してリロードするのではなく)サーバを停止してから再起動す
+      る必要があります。
      </programlisting>
     </example>
+   
+    <para>
+     Apache 
+のインストールやUNIXの種類によりサーバを停止し、再起動する
+     
+方法はいくつもあります。複数のApache/UNIXの組合せについてサーバを
+     再起動する際に使用される典型的な方法を以下に示します。
+     <literal>/path/to/</literal> 
+を使用するシステムのアプリケーション
+     へのパスに置き換えて読んで下さい。
+     <informalexample>
+      <programlisting>
+1. 複数の Linux および SysV から派生したもの:
+/etc/rc.d/init.d/httpd restart
+
+2. apachectl スクリプトを使用する方法:
+/path/to/apachectl stop
+/path/to/apachectl start
+
+3. (OpenSSL を使用している場合、) apachectl と同様に httpdctl および
+       httpsdctl を使用する方法:
+/path/to/httpsdctl stop
+/path/to/httpsdctl start
+
+4. Using mod_ssl, or another SSL server, you may want to manually
+stop and start:
+/path/to/apachectl stop
+/path/to/apachectl startssl
+      </programlisting>
+     </informalexample>
+     apachectl および http(s)dctl 
+の実行ファイルの位置はシステムにより
+     異なります。システムが <literal>locate</literal> または
+     <literal>whereis</literal> または <literal>which</literal> をサポー
+     
+トしている場合、サーバ制御用プログラムを見つけるために使用するこ
+     とが可能です。
+    </para>
     
     <para>
      PHPをApache用にコンパイルする別の例を以下に示します。
@@ -3669,12 +3702,15 @@
    
    
    <sect2 id="install.apache.windows">
-    <title>Windows 9x/NT および Apache 1.3.x インストールの詳細</title>
+    <title>Windows上のApache 1.3.xへのPHPインストールの詳細</title>
     
     <simpara>
-     ApacheでPHP CGIバイナリを使用するように設定するには、
+     PHP を Windows 上の Apache 1.3.x 
+で動作させるには、2種類の方法が
+     あります。一つは、CGIバイナリ (php.exe) 
+を使用する方法、もう一つ
+     は Apache モジュールdll 
+を使用する方法です。どちらの場合も Apache
+     サーバを停止し、PHP と組み合むように Apache 
+を設定するために
      <literal>srm.conf</literal> または <literal>httpd.conf</literal>
-     を編集する必要があります。
+     を編集します。
     </simpara>
     <simpara>
      
Apache用にPHPを設定する手順にはいくつかありますが、この手順は入門
@@ -3713,6 +3749,9 @@
        </simpara>
       </listitem>
      </itemizedlist>
+     
+サーバを再起動することを忘れないで下さい。再起動は、例えば、
+     <literal>NET STOP APACHE</literal> の後に
+     <literal>NET START APACHE</literal> を実行します。
     </para>
 
     <simpara>
Index: phpdoc/ja/functions/datetime.xml
diff -u phpdoc/ja/functions/datetime.xml:1.21 phpdoc/ja/functions/datetime.xml:1.22
--- phpdoc/ja/functions/datetime.xml:1.21       Sun Mar 18 08:36:45 2001
+++ phpdoc/ja/functions/datetime.xml    Thu Mar 22 07:48:05 2001
@@ -622,7 +622,7 @@
       <title><function>microtime</function> の例</title>
       <programlisting role="php">
 function getmicrotime(){ 
-    list($sec, $usec) = explode(" ",microtime()); 
+    list($usec, $sec) = explode(" ",microtime()); 
     return ((float)$sec + (float)$usec); 
     } 
 
Index: phpdoc/ja/functions/info.xml
diff -u phpdoc/ja/functions/info.xml:1.22 phpdoc/ja/functions/info.xml:1.23
--- phpdoc/ja/functions/info.xml:1.22   Sun Mar 18 08:36:45 2001
+++ phpdoc/ja/functions/info.xml        Thu Mar 22 07:48:05 2001
@@ -578,6 +578,365 @@
      た際に<literal>false</literal>を返します。
     </para>
     <para>
+     全てのオプションが <function>ini_set</function> を使用して変更す
+     
+ることが可能なわけではありません。以下にユーザのレベル毎に変更/設
+     定可能な(PHP 
+4.0.5-devにおける)全てのオプションのリストを示します。
+     <table>
+      <title>設定オプション</title>
+      <tgroup cols="3">
+       <thead>
+        <row>
+         <entry>名前</entry>
+         <entry>デフォルト</entry>
+         <entry>変更の可否</entry>
+        </row>
+       </thead>
+       <tbody>
+         <row>
+          <entry>define_syslog_variables</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>highlight.bg</entry>
+          <entry>HL_BG_COLOR</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>highlight.comment</entry>
+          <entry>HL_COMMENT_COLOR</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>highlight.default</entry>
+          <entry>HL_DEFAULT_COLOR</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>highlight.html</entry>
+          <entry>HL_HTML_COLOR</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>highlight.keyword</entry>
+          <entry>HL_KEYWORD_COLOR</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>highlight.string</entry>
+          <entry>HL_STRING_COLOR</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>allow_call_time_pass_reference</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
+         </row>
+         <row>
+          <entry>asp_tags</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
+         </row>
+         <row>
+          <entry>display_errors</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>display_startup_errors</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>enable_dl</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>error_append_string</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>error_prepend_string</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>expose_php</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>html_errors</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>ignore_user_abort</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>implicit_flush</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>log_errors</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>magic_quotes_gpc</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>magic_quotes_runtime</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>magic_quotes_sybase</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>output_buffering</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>output_handler</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>register_argc_argv</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>register_globals</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>safe_mode</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>short_open_tag</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
+         </row>
+         <row>
+          <entry>sql.safe_mode</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>track_errors</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>y2k_compliance</entry>
+          <entry>"0"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>arg_separator</entry>
+          <entry>"&"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>auto_append_file</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>auto_prepend_file</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>doc_root</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>default_charset</entry>
+          <entry>SAPI_DEFAULT_CHARSET</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>default_mimetype</entry>
+          <entry>SAPI_DEFAULT_MIMETYPE</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>error_log</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>extension_dir</entry>
+          <entry>PHP_EXTENSION_DIR</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>gpc_order</entry>
+          <entry>"GPC"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>include_path</entry>
+          <entry>PHP_INCLUDE_PATH</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>max_execution_time</entry>
+          <entry>"30"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>open_basedir</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>safe_mode_exec_dir</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>upload_max_filesize</entry>
+          <entry>"2M"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>file_uploads</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>post_max_size</entry>
+          <entry>"8M"</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>upload_tmp_dir</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>user_dir</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>variables_order</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>SMTP</entry>
+          <entry>"localhost"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>browscap</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>error_reporting</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>memory_limit</entry>
+          <entry>"8M"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>precision</entry>
+          <entry>"14"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>sendmail_from</entry>
+          <entry>NULL</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+         <row>
+          <entry>sendmail_path</entry>
+          <entry>DEFAULT_SENDMAIL_PATH</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>disable_functions</entry>
+          <entry>""</entry>
+          <entry>PHP_INI_SYSTEM</entry>
+         </row>
+         <row>
+          <entry>allow_url_fopen</entry>
+          <entry>"1"</entry>
+          <entry>PHP_INI_ALL</entry>
+         </row>
+       </tbody>
+      </tgroup>
+     </table>
+    </para>
+    <para>
+     <table>
+      <title>PHP_INI_* 定数の説明</title>
+      <tgroup cols="3">
+       <thead>
+        <row>
+         <entry>定数</entry>
+         <entry>値</entry>
+         <entry>意味</entry>
+        </row>
+       </thead>
+       <tbody>
+        <row>
+         <entry>PHP_INI_USER</entry>
+         <entry>1</entry>
+         <entry>
+         このエントリは、ユーザスクリプトから設定可能
+        </entry>
+        </row>
+        <row>
+         <entry>PHP_INI_PERDIR</entry>
+         <entry>2</entry>
+         <entry>
+         このエントリは、<filename>.htaccess</filename>から設定可能
+        </entry>
+        </row>
+        <row>
+         <entry>PHP_INI_SYSTEM</entry>
+         <entry>4</entry>
+         <entry>
+         このエントリは、<filename>php.ini</filename> または
+          <filename>httpd.conf</filename> で設定可能
+        </entry>
+        </row>
+        <row>
+         <entry>PHP_INI_ALL</entry>
+         <entry>7</entry>
+         <entry>
+         このエントリはどこでも設定可能
+        </entry>
+        </row>
+       </tbody>
+      </tgroup>
+     </table>
+    </para>
+    <para>
      <function>ini_alter</function>,
      <function>ini_get</function>,
      <function>ini_restore</function>も参照下さい。
@@ -1120,7 +1479,6 @@
       <function>get_included_files</function> へのエイリアスです。
      </para>
     </note>
-    </para>
     <para>
      <function>require_once</function>、
      <function>include_once</function>、
Index: phpdoc/ja/functions/nis.xml
diff -u phpdoc/ja/functions/nis.xml:1.8 phpdoc/ja/functions/nis.xml:1.9
--- phpdoc/ja/functions/nis.xml:1.8     Sun Mar 18 08:36:45 2001
+++ phpdoc/ja/functions/nis.xml Thu Mar 22 07:48:05 2001
@@ -230,11 +230,11 @@
       <title>NIS first の例</title>
       <programlisting role="php">
 &lt;?php
-$entry = yp_first ($domain, "passwd.byname");
-
-$key = key ($entry);
-echo "このマップの最初のエントリのキーは " . $key 
-     . " 、値は " . $entry[$key] . "です";
+$entry = yp_first($domain, "passwd.byname");
+$key = $entry ["key"];
+$value = $entry ["value"];
+echo "このマップの最初のエントリにはキー " . $key . " と値 " . 
+$value
+       . "があります。";
 ?>
       </programlisting>
      </example>
Index: phpdoc/ja/functions/pdf.xml
diff -u phpdoc/ja/functions/pdf.xml:1.19 phpdoc/ja/functions/pdf.xml:1.20
--- phpdoc/ja/functions/pdf.xml:1.19    Fri Mar  9 07:33:03 2001
+++ phpdoc/ja/functions/pdf.xml Thu Mar 22 07:48:05 2001
@@ -985,7 +985,6 @@
      <funcprototype>
       <funcdef>void <function>PDF_close_pdi_page</function></funcdef>
       <paramdef>int <parameter>pdf object</parameter></paramdef>
-      <paramdef>int <parameter>dochandle</parameter></paramdef>
       <paramdef>int <parameter>pagehandle</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
@@ -1618,6 +1617,36 @@
      <function>PDF_get_buffer</function>関数によりクライアント側で取得
      可能です。
     </para>
+    <para>
+     
+PDFドキュメントをメモリ内に作成し、正しく出力する方法を示す例を以
+     下に示します。
+     <example>
+      <title>PDFドキュメントをメモリ内に作成する</title>
+      <programlisting role="php">
+&lt;?php
+
+$pdf = pdf_new();
+
+pdf_open_file($pdf);
+pdf_begin_page($pdf, 595, 842);
+pdf_set_font($pdf, "Times-Roman", 30, "host");
+pdf_set_value($pdf, "textrendering", 1);
+pdf_show_xy($pdf, "A PDF document created in memory!", 50, 750);
+pdf_end_page($pdf);
+pdf_close($pdf);
+
+$data = pdf_get_buffer($pdf);
+
+header("Content-type: application/pdf");
+header("Content-disposition: inline; filename=test.pdf");
+header("Content-length: " . strlen($data));
+
+echo $data;
+
+?>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 
@@ -1823,6 +1852,32 @@
      イメージをそのイメージの左下隅を(<parameter>x</parameter>,
      <parameter>y</parameter>) 
に合わせるように置き、サイズを変更しま
      す。
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.pdf-place-pdi-page">
+   <refnamediv>
+    <refname>PDF_place_pdi_page</refname>
+    <refpurpose>ページにイメージを置く</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>説明</title>
+    <funcsynopsis>
+     <funcprototype>
+      <funcdef>void <function>PDF_place_pdi_page</function></funcdef>
+      <paramdef>int <parameter>pdf object</parameter></paramdef>
+      <paramdef>int <parameter>page</parameter></paramdef>
+      <paramdef>double <parameter>x</parameter></paramdef>
+      <paramdef>double <parameter>y</parameter></paramdef>
+      <paramdef>double <parameter>sx</parameter></paramdef>
+      <paramdef>double <parameter>sy</parameter></paramdef>
+     </funcprototype>
+    </funcsynopsis>
+    <para>
+     あるページの左下PDFを(<parameter>x</parameter>,
+     <parameter>y</parameter>) とする位置にイメージを配置し、定数倍
+     します。
     </para>
    </refsect1>
   </refentry>
Index: phpdoc/ja/functions/strings.xml
diff -u phpdoc/ja/functions/strings.xml:1.29 phpdoc/ja/functions/strings.xml:1.30
--- phpdoc/ja/functions/strings.xml:1.29        Thu Mar 15 04:22:10 2001
+++ phpdoc/ja/functions/strings.xml     Thu Mar 22 07:48:05 2001
@@ -480,9 +480,13 @@
     </simpara>
     <para>
      <function>echo</function> は実際には関数ではありません。
-     
(言語構造です。)このため、使用する際に括弧は必要ありません《
     <example>
+     
+(言語構造です。)このため、使用する際に括弧は必要ありません。実際、
+     複数のパラメータを指定して echo 
+をコールしたい場合、括弧の中にパ
+     ラメータを記述するべきではありません。
+     <example>
       <title><function>echo</function> の例</title>
       <programlisting role="php">
+&lt;?php
 echo "Hello World";
 
 echo "This spans
@@ -490,15 +494,41 @@
 output as well";
  
 echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
+
+echo "escaping characters is done \"Like this\"."
+
+// echo 命令の中で変数を使用することが可能です
+$foo = "foobar";
+$bar = "barbaz";
+
+echo "foo is $foo"; // foo は foobar です。
+
+// 値ではなく変数名を出力するシングルクオートを使用する。
+echo 'foo is $foo'; //
+
+// 他の文字を全く使用しない場合、echo 変数を使用可能です。
+echo $foo;          // foobar
+echo $foo,$bar;     // foobarbarbaz
+
+// echo は関数ではないので以下のコードは正しくありません
+($some_var) ? echo('true'): echo('false');
+
+// しかし、次の例は動作します。
+($some_var) ? print('true'): print('false'); // print は関数
+echo ($some_var) ? 'true': 'false'; // 命令を変更
+?>
       </programlisting>
      </example>
+    </para>
+    <para>
+     <function>echo</function> 
+には、次のように開始タグのすぐ後に等号
+     を付ける省略形があります。
+     <informalexample>
+      <programlisting role="php">
+I have &lt;?=$foo?> foo.
+      </programlisting>
+     </informalexample>
     </para>     
-    <note>
-     <para>
-      実際、2つ以上のパラメータを echo に渡したい場合、
-      パラメータを括弧で閉じる必要はありません。
-     </para>
-    </note>
     <simpara>
      <function>print</function>,
      <function>printf</function>,
Index: phpdoc/ja/functions/var.xml
diff -u phpdoc/ja/functions/var.xml:1.24 phpdoc/ja/functions/var.xml:1.25
--- phpdoc/ja/functions/var.xml:1.24    Sun Mar 18 08:36:45 2001
+++ phpdoc/ja/functions/var.xml Thu Mar 22 07:48:05 2001
@@ -909,7 +909,12 @@
      </funcprototype>
     </funcsynopsis>
     <para>
-     
<function>unset</function>は指定した変数を破棄し、trueを返します。
+     <function>unset</function>は指定した変数を破棄します。PHP 
+3では、
+     <function>unset</function> は常に true(実際には整数値1) を返して
+     いました。しかし、PHP 4では <function>unset</function> はもはや真
+     
+の意味で関数ではなく、命令となっています。値が返されないため、
+     <function>unset</function> 
+の値を取得しようとすると、パースエラー
+     となります。
     </para>
     <para>
      <example>

Reply via email to