cvs: phpdoc /ja/features safe-mode.xml /ja/functions iconv.xml pdf.xml
| From: | Rui Hirokawa | Date: | Wed, 11 Jul 2001 13:10:25 +0000 |
| Subject: | cvs: phpdoc /ja/features safe-mode.xml /ja/functions iconv.xml pdf.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969336136@lists.php.net to get a copy of this message | ||
hirokawa Wed Jul 11 09:10:25 2001 EDT
Added files:
/phpdoc/ja/features safe-mode.xml
/phpdoc/ja/functions iconv.xml
Modified files:
/phpdoc/ja/functions pdf.xml
Log:
added iconv.xml ad safe-mode.xml in japanese php manual translation.
Index: phpdoc/ja/functions/pdf.xml diff -u phpdoc/ja/functions/pdf.xml:1.24 phpdoc/ja/functions/pdf.xml:1.25 --- phpdoc/ja/functions/pdf.xml:1.24 Sat Jul 7 18:26:04 2001 +++ phpdoc/ja/functions/pdf.xml Wed Jul 11 09:10:24 2001 @@ -333,8 +333,8 @@ <programlisting role="php"> <?php $len = filesize($filename); -header("Content-type: application/pdf"); header("Content-Length: $len"); +header("Content-type: application/pdf"); header("Content-Disposition: inline; filename=foo.pdf"); readfile($filename); ?> Index: phpdoc/ja/features/safe-mode.xml +++ phpdoc/ja/features/safe-mode.xml <chapter id="features.safe-mode"> <title>ã»ã¼ãã¢ã¼ã</title> <para> ã»ã¼ãã¢ã¼ãã¯ãå ±æãµã¼ãã«ãããã»ãã¥ãªãã£ä¸ã®åé¡ã«å¯¾ãã解決ç ã§ãããã®åé¡ãPHPã®ã¬ãã«ã§è§£æ±ºãããããã®ã¯ã¢ã¼ããã¯ãã£ä¸æ£ãã ããã¾ãããããããWebãµã¼ããOSã®ã¬ãã«ã§ã®ä»£æ¿çã¯ãã¾ãç¾å®çã§ã¯ ãªããããå¤ãã®ã¦ã¼ã¶ãç¹ã«ISPã§ã¯ãã»ã¼ãã¢ã¼ããç¾å¨ä½¿ç¨ããã¦ãã¾ ãã </para> <para> ã»ã¼ãã¢ã¼ããå¶å¾¡ããè¨å®ãã£ã¬ã¯ãã£ãã«ã¯ã次ã®ãããªãã®ãããã¾ãã <programlisting role="ini"> safe_mode = Off open_basedir = safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ safe_mode_protected_env_vars = LD_LIBRARY_PATH disable_functions = </programlisting> </para> <para> ã»ã¼ãã¢ã¼ããonã®å ´åãPHPã¯ãç¾å¨ã®ã¹ã¯ãªããã®ææè ããã¡ã¤ã«é¢æ°ã« ããå¦çããã¦ãããã¡ã¤ã«ã®ææè ã«ä¸è´ãããã©ããã調ã¹ã¾ããä¾ãã°ã <programlisting role="ls"> -rw-rw-r-- 1 rasmus rasmus 33 Jul 1 19:20 script.php -rw-r--r-- 1 root root 1116 May 26 18:01 /etc/passwd </programlisting> 以ä¸ã®script.php ãå®è¡ããã¨ã <programlisting role="php"> <?php readfile('/etc/passwd'); ?> </programlisting> ã»ã¼ãã¢ã¼ããæå¹ãªå ´åã以ä¸ã®ãããªã¨ã©ã¼ãåºåããã¾ãã <programlisting role="php"> Warning: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access /etc/passwd owned by uid 0 in /docroot/script.php on line 2 </programlisting> </para> <para> safe_modeã®ä»£ããã«ãopen_basedir ãã£ã¬ã¯ããªãè¨å®ããã¨ãå ¨ã¦ã® ãã¡ã¤ã«æä½ã¯ãæå®ãããã£ã¬ã¯ããªä»¥ä¸ã«ãããã®ã«å¶éããã¾ãã ä¾ã以ä¸ã«ç¤ºãã¾ãã(Apache httpd.ini ã®ä¾) <programlisting role="ini"> <Directory /docroot> php_admin_value open_basedir /docroot </Directory> </programlisting> ãã®open_basedirè¨å®ã§åãscript.phpãå®è¡ããå ´åã以ä¸ã®ãããªçµæ ã¨ãªãã¾ãã <programlisting role="php"> Warning: open_basedir restriction in effect. File is in wrong directory in /docroot/script.php on line 2 </programlisting> </para> <para> åã ã®é¢æ°ãç¡å¹ã«ãããã¨ãå¯è½ã§ãã以ä¸ã®è¨å®ãphp.iniãã¡ã¤ã«ã« 追å ãã¦ã¿ã¾ãããã <programlisting role="ini"> disable_functions readfile,system </programlisting> ãã®å ´åãæ¬¡ã®ãããªåºåã¨ãªãã¾ãã <programlisting role="php"> Warning: readfile() has been disabled for security reasons in /docroot/script.php on line 2 </programlisting> </para> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: --> Index: phpdoc/ja/functions/iconv.xml +++ phpdoc/ja/functions/iconv.xml <reference id="ref.iconv"> <title>iconv 颿°</title> <titleabbrev>iconv</titleabbrev> <partintro> <para> ãã®ã¢ã¸ã¥ã¼ã«ã«ã¯ãiconvã©ã¤ãã©ãªé¢æ°ã¸ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå«ã¾ã ã¦ãã¾ãããã®é¢æ°ã使ç¨ããã«ã¯ãPHPã¤ã³ã¿ããªã¿ãã³ã³ãã¤ã«ããé ã« --with-iconv ãä»ãã¦ã³ã³ãã¤ã«ãããå¿ è¦ãããã¾ãããã®éã iconv()颿°ãæ¨æºCã©ã¤ãã©ãªã«åå¨ããããã·ã¹ãã ã«libiconvãã¤ã³ ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã libiconv ã©ã¤ãã©ãªã¯ã<ulink url="&url.libiconv;"> &url.libiconv;</ulink>ã§å ¥æå¯è½ã§ãã </para> <para> iconvã©ã¤ãã©ãªé¢æ°ã¯ã種ã ã®ã¨ã³ã³ã¼ãã£ã³ã°ã§ã¨ã³ã³ã¼ãããããã¡ ã¤ã«ã®æåéåãç¸äºã«å¤æãã¾ãããµãã¼ããããæåéåã¯ãã·ã¹ãã ã®iconv()ã®å®è£ ã«ä¾åãã¾ããããã¤ãã®ã·ã¹ãã ã§ã¯iconv()颿°ã¯æå³ ããéãã«åä½ããªãå¯è½æ§ãããã¾ãããã®å ´åãlibiconvã©ã¤ãã©ãªã ã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ãã </para> </partintro> <refentry id="function.iconv"> <refnamediv> <refname>iconv</refname> <refpurpose> ãªã¯ã¨ã¹ãããæåã¨ã³ã³ã¼ãã£ã³ã°ã«æååã夿ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>iconv</function></funcdef> <paramdef>string <parameter>in_charset</parameter></paramdef> <paramdef>string <parameter>out_charset</parameter></paramdef> <paramdef>string <parameter>str</parameter></paramdef> </funcprototype> </funcsynopsis> <para> It converts the string <parameter>string</parameter> encoded in <parameter>in_charset</parameter> to the string encoded in <parameter>out_charset</parameter>. It returns the converted string or &false;, if it fails. </para> <para> <example> <title><function>iconv</function> ã®ä¾</title> <programlisting role="php"> echo iconv("ISO-8859-1","UTF8","This is test."); </programlisting> </example> </para> </refsect1> </refentry> <refentry id="function.iconv-get-encoding"> <refnamediv> <refname>iconv_get_encoding</refname> <refpurpose> æåã¨ã³ã³ã¼ãã£ã³ã°å¤æã®ã«ã¬ã³ãã®è¨å®ãåå¾ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>iconv_get_encoding</function></funcdef> <paramdef>string <parameter><optional>type</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> <function>ob_iconv_handler</function>ã®ã«ã¬ã³ãã®è¨å®ãå«ãé å ãè¿ãã¾ããã¨ã©ã¼ã®å ´åã¯ã&false;ãè¿ãã¾ãã </para> <para> <function>iconv_set_encoding</function> ããã³ <function>ob_iconv_handler</function>ãåç §ä¸ããã </para> </refsect1> </refentry> <refentry id="function.iconv-set-encoding"> <refnamediv> <refname>iconv_set_encoding</refname> <refpurpose> æåã¨ã³ã³ã¼ãã£ã³ã°å¤æç¨ã®è¨å®ãè¡ãªã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>iconv_set_encoding</function></funcdef> <paramdef>string <parameter>type</parameter></paramdef> <paramdef>string <parameter>charset</parameter></paramdef> </funcprototype> </funcsynopsis> <para> <parameter>type</parameter> ã®å¤ã <parameter>charset</parameter>ã«&true;ãè¿ãã¾ããã¨ã©ã¼æã«ã¯ã &false; ãè¿ãã¾ãã </para> <para> <example> <title><function>iconv_set_encoding</function> ã®ä¾</title> <programlisting role="php"> iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); </programlisting> </example> </para> <para> <function>iconv_get_encoding</function> ããã³ <function>ob_iconv_handler</function>ãåç §ä¸ããã </para> </refsect1> </refentry> <refentry id="function.ob-iconv-handler"> <refnamediv> <refname>ob_iconv_handler</refname> <refpurpose> åºåãããã¡ãã³ãã©ã¨ãã¦æåã¨ã³ã³ã¼ãã£ã³ã°ã夿ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>ob_iconv_handler</function></funcdef> <paramdef>string <parameter>contents</parameter> </paramdef> <paramdef>int <parameter>status</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> <parameter>internal_encoding</parameter> ã§ã¨ã³ã³ã¼ããããæååã <parameter>output_encoding</parameter>ã«å¤æãã¾ãã </para> <para> <parameter>internal_encoding</parameter> ããã³ <parameter>output_encoding</parameter> ã¯ã <function>iconv_set_encoding</function> ã¾ãã¯è¨å®ãã¡ã¤ã«ã§å®ç¾©ãã ã¦ããå¿ è¦ãããã¾ãã </para> <para> <example> <title><function>ob_iconv_handler</function> ã®ä¾</title> <programlisting role="php"> ob_start("ob_iconv_handler"); // åºåãããã¡ãªã³ã°ãéå§ </programlisting> </example> </para> <para> <function>iconv_get_encoding</function> ããã³ <function>iconv_set_encoding</function>ãåç §ä¸ããã </para> </refsect1> </refentry> </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: -->
Index: phpdoc/ja/functions/pdf.xml diff -u phpdoc/ja/functions/pdf.xml:1.24 phpdoc/ja/functions/pdf.xml:1.25 --- phpdoc/ja/functions/pdf.xml:1.24 Sat Jul 7 18:26:04 2001 +++ phpdoc/ja/functions/pdf.xml Wed Jul 11 09:10:24 2001 @@ -333,8 +333,8 @@ <programlisting role="php"> <?php $len = filesize($filename); -header("Content-type: application/pdf"); header("Content-Length: $len"); +header("Content-type: application/pdf"); header("Content-Disposition: inline; filename=foo.pdf"); readfile($filename); ?> Index: phpdoc/ja/features/safe-mode.xml +++ phpdoc/ja/features/safe-mode.xml <chapter id="features.safe-mode"> <title>ã»ã¼ãã¢ã¼ã</title> <para> ã»ã¼ãã¢ã¼ãã¯ãå ±æãµã¼ãã«ãããã»ãã¥ãªãã£ä¸ã®åé¡ã«å¯¾ãã解決ç ã§ãããã®åé¡ãPHPã®ã¬ãã«ã§è§£æ±ºãããããã®ã¯ã¢ã¼ããã¯ãã£ä¸æ£ãã ããã¾ãããããããWebãµã¼ããOSã®ã¬ãã«ã§ã®ä»£æ¿çã¯ãã¾ãç¾å®çã§ã¯ ãªããããå¤ãã®ã¦ã¼ã¶ãç¹ã«ISPã§ã¯ãã»ã¼ãã¢ã¼ããç¾å¨ä½¿ç¨ããã¦ãã¾ ãã </para> <para> ã»ã¼ãã¢ã¼ããå¶å¾¡ããè¨å®ãã£ã¬ã¯ãã£ãã«ã¯ã次ã®ãããªãã®ãããã¾ãã <programlisting role="ini"> safe_mode = Off open_basedir = safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ safe_mode_protected_env_vars = LD_LIBRARY_PATH disable_functions = </programlisting> </para> <para> ã»ã¼ãã¢ã¼ããonã®å ´åãPHPã¯ãç¾å¨ã®ã¹ã¯ãªããã®ææè ããã¡ã¤ã«é¢æ°ã« ããå¦çããã¦ãããã¡ã¤ã«ã®ææè ã«ä¸è´ãããã©ããã調ã¹ã¾ããä¾ãã°ã <programlisting role="ls"> -rw-rw-r-- 1 rasmus rasmus 33 Jul 1 19:20 script.php -rw-r--r-- 1 root root 1116 May 26 18:01 /etc/passwd </programlisting> 以ä¸ã®script.php ãå®è¡ããã¨ã <programlisting role="php"> <?php readfile('/etc/passwd'); ?> </programlisting> ã»ã¼ãã¢ã¼ããæå¹ãªå ´åã以ä¸ã®ãããªã¨ã©ã¼ãåºåããã¾ãã <programlisting role="php"> Warning: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access /etc/passwd owned by uid 0 in /docroot/script.php on line 2 </programlisting> </para> <para> safe_modeã®ä»£ããã«ãopen_basedir ãã£ã¬ã¯ããªãè¨å®ããã¨ãå ¨ã¦ã® ãã¡ã¤ã«æä½ã¯ãæå®ãããã£ã¬ã¯ããªä»¥ä¸ã«ãããã®ã«å¶éããã¾ãã ä¾ã以ä¸ã«ç¤ºãã¾ãã(Apache httpd.ini ã®ä¾) <programlisting role="ini"> <Directory /docroot> php_admin_value open_basedir /docroot </Directory> </programlisting> ãã®open_basedirè¨å®ã§åãscript.phpãå®è¡ããå ´åã以ä¸ã®ãããªçµæ ã¨ãªãã¾ãã <programlisting role="php"> Warning: open_basedir restriction in effect. File is in wrong directory in /docroot/script.php on line 2 </programlisting> </para> <para> åã ã®é¢æ°ãç¡å¹ã«ãããã¨ãå¯è½ã§ãã以ä¸ã®è¨å®ãphp.iniãã¡ã¤ã«ã« 追å ãã¦ã¿ã¾ãããã <programlisting role="ini"> disable_functions readfile,system </programlisting> ãã®å ´åãæ¬¡ã®ãããªåºåã¨ãªãã¾ãã <programlisting role="php"> Warning: readfile() has been disabled for security reasons in /docroot/script.php on line 2 </programlisting> </para> </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: --> Index: phpdoc/ja/functions/iconv.xml +++ phpdoc/ja/functions/iconv.xml <reference id="ref.iconv"> <title>iconv 颿°</title> <titleabbrev>iconv</titleabbrev> <partintro> <para> ãã®ã¢ã¸ã¥ã¼ã«ã«ã¯ãiconvã©ã¤ãã©ãªé¢æ°ã¸ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå«ã¾ã ã¦ãã¾ãããã®é¢æ°ã使ç¨ããã«ã¯ãPHPã¤ã³ã¿ããªã¿ãã³ã³ãã¤ã«ããé ã« --with-iconv ãä»ãã¦ã³ã³ãã¤ã«ãããå¿ è¦ãããã¾ãããã®éã iconv()颿°ãæ¨æºCã©ã¤ãã©ãªã«åå¨ããããã·ã¹ãã ã«libiconvãã¤ã³ ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ãã libiconv ã©ã¤ãã©ãªã¯ã<ulink url="&url.libiconv;"> &url.libiconv;</ulink>ã§å ¥æå¯è½ã§ãã </para> <para> iconvã©ã¤ãã©ãªé¢æ°ã¯ã種ã ã®ã¨ã³ã³ã¼ãã£ã³ã°ã§ã¨ã³ã³ã¼ãããããã¡ ã¤ã«ã®æåéåãç¸äºã«å¤æãã¾ãããµãã¼ããããæåéåã¯ãã·ã¹ãã ã®iconv()ã®å®è£ ã«ä¾åãã¾ããããã¤ãã®ã·ã¹ãã ã§ã¯iconv()颿°ã¯æå³ ããéãã«åä½ããªãå¯è½æ§ãããã¾ãããã®å ´åãlibiconvã©ã¤ãã©ãªã ã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ãã </para> </partintro> <refentry id="function.iconv"> <refnamediv> <refname>iconv</refname> <refpurpose> ãªã¯ã¨ã¹ãããæåã¨ã³ã³ã¼ãã£ã³ã°ã«æååã夿ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>string <function>iconv</function></funcdef> <paramdef>string <parameter>in_charset</parameter></paramdef> <paramdef>string <parameter>out_charset</parameter></paramdef> <paramdef>string <parameter>str</parameter></paramdef> </funcprototype> </funcsynopsis> <para> It converts the string <parameter>string</parameter> encoded in <parameter>in_charset</parameter> to the string encoded in <parameter>out_charset</parameter>. It returns the converted string or &false;, if it fails. </para> <para> <example> <title><function>iconv</function> ã®ä¾</title> <programlisting role="php"> echo iconv("ISO-8859-1","UTF8","This is test."); </programlisting> </example> </para> </refsect1> </refentry> <refentry id="function.iconv-get-encoding"> <refnamediv> <refname>iconv_get_encoding</refname> <refpurpose> æåã¨ã³ã³ã¼ãã£ã³ã°å¤æã®ã«ã¬ã³ãã®è¨å®ãåå¾ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>iconv_get_encoding</function></funcdef> <paramdef>string <parameter><optional>type</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> <para> <function>ob_iconv_handler</function>ã®ã«ã¬ã³ãã®è¨å®ãå«ãé å ãè¿ãã¾ããã¨ã©ã¼ã®å ´åã¯ã&false;ãè¿ãã¾ãã </para> <para> <function>iconv_set_encoding</function> ããã³ <function>ob_iconv_handler</function>ãåç §ä¸ããã </para> </refsect1> </refentry> <refentry id="function.iconv-set-encoding"> <refnamediv> <refname>iconv_set_encoding</refname> <refpurpose> æåã¨ã³ã³ã¼ãã£ã³ã°å¤æç¨ã®è¨å®ãè¡ãªã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>iconv_set_encoding</function></funcdef> <paramdef>string <parameter>type</parameter></paramdef> <paramdef>string <parameter>charset</parameter></paramdef> </funcprototype> </funcsynopsis> <para> <parameter>type</parameter> ã®å¤ã <parameter>charset</parameter>ã«&true;ãè¿ãã¾ããã¨ã©ã¼æã«ã¯ã &false; ãè¿ãã¾ãã </para> <para> <example> <title><function>iconv_set_encoding</function> ã®ä¾</title> <programlisting role="php"> iconv_set_encoding("internal_encoding", "UTF-8"); iconv_set_encoding("output_encoding", "ISO-8859-1"); </programlisting> </example> </para> <para> <function>iconv_get_encoding</function> ããã³ <function>ob_iconv_handler</function>ãåç §ä¸ããã </para> </refsect1> </refentry> <refentry id="function.ob-iconv-handler"> <refnamediv> <refname>ob_iconv_handler</refname> <refpurpose> åºåãããã¡ãã³ãã©ã¨ãã¦æåã¨ã³ã³ã¼ãã£ã³ã°ã夿ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <funcsynopsis> <funcprototype> <funcdef>array <function>ob_iconv_handler</function></funcdef> <paramdef>string <parameter>contents</parameter> </paramdef> <paramdef>int <parameter>status</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> <parameter>internal_encoding</parameter> ã§ã¨ã³ã³ã¼ããããæååã <parameter>output_encoding</parameter>ã«å¤æãã¾ãã </para> <para> <parameter>internal_encoding</parameter> ããã³ <parameter>output_encoding</parameter> ã¯ã <function>iconv_set_encoding</function> ã¾ãã¯è¨å®ãã¡ã¤ã«ã§å®ç¾©ãã ã¦ããå¿ è¦ãããã¾ãã </para> <para> <example> <title><function>ob_iconv_handler</function> ã®ä¾</title> <programlisting role="php"> ob_start("ob_iconv_handler"); // åºåãããã¡ãªã³ã°ãéå§ </programlisting> </example> </para> <para> <function>iconv_get_encoding</function> ããã³ <function>iconv_set_encoding</function>ãåç §ä¸ããã </para> </refsect1> </refentry> </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: -->