cvs: phpdoc /ja/chapters install.xml /ja/functions datetime.xml info.xml nis.xml pdf.xml strings.xml var.xml
| From: | Rui Hirokawa | Date: | Thu, 22 Mar 2001 15:48:06 +0000 |
| Subject: | cvs: phpdoc /ja/chapters install.xml /ja/functions datetime.xml info.xml nis.xml pdf.xml strings.xml var.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969334789@lists.php.net to get a copy of this message | ||
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"> <?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"> +<?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"> +<?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 <?=$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>
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"> <?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"> +<?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"> +<?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 <?=$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>