cvs: phpdoc /kr/features error-handling.xml file-upload.xml
| From: | WonHee Hwang | Date: | Thu, 18 Jan 2001 06:10:31 +0000 |
| Subject: | cvs: phpdoc /kr/features error-handling.xml file-upload.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333713@lists.php.net to get a copy of this message | ||
regina Wed Jan 17 22:10:31 2001 EDT
Modified files:
/phpdoc/kr/features error-handling.xml file-upload.xml
Log:
Index: phpdoc/kr/features/error-handling.xml diff -u phpdoc/kr/features/error-handling.xml:1.2 phpdoc/kr/features/error-handling.xml:1.3 --- phpdoc/kr/features/error-handling.xml:1.2 Tue Jan 9 03:27:54 2001 +++ phpdoc/kr/features/error-handling.xml Wed Jan 17 22:10:31 2001 @@ -36,7 +36,7 @@ <entry>8</entry> <entry>E_NOTICE </entry> <entry> - Notices (무ìí ì ìë ì림ì´ì§ë§ ë²ê·¸ì ê°ë¥ì±ì ê°ì§ê³ ìë ê²½ì°) + Notices (ì림-무ìí ì ìë ì림ì´ì§ë§ ë²ê·¸ì ê°ë¥ì±ì ê°ì§ê³ ìë ê²½ì°) </entry> <entry/> </row> @@ -95,61 +95,52 @@ </table> </para> <para> - The above values (either numerical or symbolic) are used to build - up a bitmask that specifies which errors to report. You can use the - <link linkend="language.operators.bitwise">bitwise operators</link> - to combine these values or mask out certain types of errors. Note - that only '|', '~', '!', and '&' will be understood within - <filename>php.ini</filename>, however, and that no bitwise - operators will be understood within <filename>php3.ini</filename>. + ìì ê°(ì«ì, ìì 모ë)ì ë í¬í¸í기 ìíë ë´ì©ì ë¹í¸ë¥¼ ì¤ì í기 ìí´ ì¡°í©íì¬ ì¬ì©í ì ìë¤. + ìíë ê°ì ì¡°í©í´ë´ê¸° ìí´ <link linkend="language.operators.bitwise">bitwise operators</link>ì + ìë ë¹í¸ ì¡°ì ì°ì°ì를 ì¬ì©íë¤. ë¨ <filename>php.ini</filename> íì¼ììë '|', '~', '!', '&'ì + ë¤ê°ì ì°ì°ìë§ ì¬ì©ê°ë¥íê³ , <filename>php3.ini</filename>ììë ì´ë¤ ë¹í¸ë¨ì ì°ì°ìë ì¬ì©í ì ìë¤. </para> <para> - In PHP 4, the default <link linkend="ini.error-reporting">error_reporting</link> setting is - <literal>E_ALL & ~E_NOTICE</literal>, meaning to display all errors - and warnings which are not E_NOTICE-level. In PHP 3, the default - setting is <literal>(E_ERROR | E_WARNING | E_PARSE)</literal>, - meaning the same thing. Note, however, that since constants are not - supported in PHP 3's <filename>php3.ini</filename>, the <link linkend="ini.error-reporting">error_reporting</link> setting there - must be numeric; hence, it is <literal>7</literal>. + PHP4ìì <link linkend="ini.error-reporting">error_reporting</link>ì 기본ê°ì + <literal>E_ALL & ~E_NOTICE</literal>ì´ë¤. ì¦, 모ë ìë¬ì ê²½ê³ ë¥¼ ì¶ë ¥íì§ë§ ì림(notice)ë ë í¬í íì§ ìëë¤. + PHP3ììì 기본ê°ì <literal>(E_ERROR | E_WARNING | E_PARSE)</literal>ì´ë¤. + ë´ì©ì ì¼ë¡ë PHP4ì ê°ë¤. + PHP3ì <filename>php3.ini</filename>ììë ìì를 ì¬ì©í ì¤ì ì ì¬ì©í ì ìì¼ë¯ë¡, + <link linkend="ini.error-reporting">error_reporting</link>ì ê°ì ë°ëì ì«ìì¬ì¼ íë¤. + ê·¸ë¬ë¯ë¡ 기본ê°ì <literal>7</literal>ì´ë¤. </para> <para> - The initial setting can be changed in the ini file with the <link linkend="ini.error-reporting">error_reporting</link> directive, in - your Apache <filename>httpd.conf</filename> file with the - php_error_reporting (php3_error_reporting for PHP 3) directive, and - lastly it may be set at runtime within a script by using the - <function>error_reporting</function> function. + ì´ê¸° ì¤ì ì ini íì¼ì ìë <link linkend="ini.error-reporting">error_reporting</link> ì§ìì를 ì¬ì©íì¬ ë³í ì ìê³ , + ìíì¹ì <filename>httpd.conf</filename>íì¼ìì php_error_reporting (PHP3ììë php3_error_reporting) ì§ìì를 + ì¬ì©íì¬ ì¤ì í ìë ìë¤. ëí, ì¤í¬ë¦½í¸ ì¤íì¤ì <function>error_reporting</function> í¨ì를 ì¬ì©íì¬ ì¤ì í ìë ìë¤. </para> <warning> <para> - When upgrading code or servers from PHP 3 to PHP 4 you should - check these settings and calls to - <function>error_reporting</function> or you might disable - reporting the new error types, especially E_COMPILE_ERROR. This - may lead to empty documents without any feedback of what happened - or where to look for the problem. + PHP3ìì PHP4ë¡ íë¡ê·¸ë¨ ì½ëë ìë² ì체를 ì´ì í ê²½ì°, + ì´ ì¤ì ê³¼ <function>error_reporting</function> í¨ìì í¸ì¶ ë´ìì ë°ëì íì¸íê±°ë, + E_COMPILE_ERROR를 í¬í¨í ìë¡ì´ ìë¬ íì ì ëí ë í¬í ì ë¶ê°ë¥íê² íì¬ì¼ íë¤. + ì칫íë©´ ì´ë¤ 문ì ê° ì´ëì ë°ìíëê°ì ëí ì ë³´ìì´ ë¹ ë¬¸ì를 ë§ë¤ì´ ë¼ ìë ìì¼ë¯ë¡ 주ìíì. </para> </warning> <para> - 모ë <link linkend="language.expressions">PHP ííì(expression)</link>ì "@"를 ìì ë¶ì´ê³ í¸ì¶ëë©´ error reportingì íì§ ìëë¤. - ë§ì½ <link linkend="ini.track-errors">track_errors</link> ìµì ì´ Enabledë¡ ëì´ ìê³ í´ë¹ 문ì¥ìì ìë¬ê° ë°ìíë¤ë©´, - $php_errormsgë¼ë ì ìë³ìì ìë¬ ë©ìì§ê° ë´ê²¨ ìê² ëë¤. + 모ë <link linkend="language.expressions">PHP ííì(expression)</link>ì "@"를 ìì ë¶ì´ê³ í¸ì¶ëë©´ + error reportingì íì§ ìëë¤. ë§ì½ <link linkend="ini.track-errors">track_errors</link> ìµì ì´ Enabledë¡ + ëì´ ìê³ í´ë¹ 문ì¥ìì ìë¬ê° ë°ìíë¤ë©´, $php_errormsgë¼ë ì ìë³ìì ìë¬ ë©ìì§ê° ë´ê²¨ ìê² ëë¤. </para> <warning> <para> - Currently the <link linkend="language.operators.errorcontrol">@ - error-control operator</link> prefix will even disable error - reporting for critical errors that will terminate script - execution. Among other things, this means that if you use <link linkend="language.operators.errorcontrol">@</link> to suppress - errors from a certain function and either it isn't available or - has been mistyped, the script will die right there with no - indication as to why. + íì¬ <link linkend="language.operators.errorcontrol">@ + error-control operator</link> ì íì(prefix)ë ì¤í¬ë¦½í¸ë¥¼ ì¤ë¨ìí¬ ì ëì + ì¹ëª ì ì¸ ìë¬ì ëí´ìë ìë¬ ë í¬í ì íì§ ìê² íë¤. + í¹í <link linkend="language.operators.errorcontrol">@</link>ì´ í¹ì í¨ìì ìë¬ë í¬í ì + ìµì íë ¤ê³ ì¬ì©ë ê²½ì°ì, ì´ í¨ìê° ì¡´ì¬ íì§ ìê±°ë, ì´ë¦ì ì못 ì´ ê²½ì° í´ë¹ ì¤í¬ë¦½í¸ë + ìë¬´ë° ì´ì 를 íìíì§ ìê³ ì£½ì´ë²ë¦¬ê² ëë¤. </para> </warning> <para> - Below we can see an example of using the error handling capabilities in - PHP. We define a error handling function which logs the information into - a file (using an XML format), and e-mails the developer in case a critical - error in the logic happens. + ìëì PHPìì ìë¬ë¥¼ ë¤ë£¨ë 기ë¥ì ëí ì¬ì© ì를 ì ì´ ëìë¤. + ì´ ììì ì°ë¦¬ë íì¼ë¡(XML í¬ë§·ì ì¬ì©) í´ë¹ ì ë³´ì ë¡ê·¸ë¥¼ ë¨ê¸°ê³ , + ë ¼ë¦¬ì ì¸ ë¬¸ì ë¡ ì¹ëª ì ì¸ ìë¬ê° ì긴경ì°ë ê°ë°ììê² e-mailì ë³´ë´ë ìë¬ í¸ë¤ë§ í¨ì를 ì ìíìë¤. <example> <title>Using error handling in a script</title> <programlisting role="php"> @@ -254,9 +245,8 @@ ?> </programlisting> </example> - This is just a simple example showing how to use the - <link linkend="ref.errorfunc">Error Handling and Logging - functions</link>. + ì´ê²ì <link linkend="ref.errorfunc">Error Handling and Logging functions</link>ì + ìë í¨ìë¤ì ì´ë»ê² ì¬ì©íë ê°ë¥¼ ë³´ì¬ì£¼ë ê°ë¨í ìì´ë¤. </para> <para> See also <function>error_reporting</function>, Index: phpdoc/kr/features/file-upload.xml diff -u phpdoc/kr/features/file-upload.xml:1.3 phpdoc/kr/features/file-upload.xml:1.4 --- phpdoc/kr/features/file-upload.xml:1.3 Wed Jan 10 02:46:55 2001 +++ phpdoc/kr/features/file-upload.xml Wed Jan 17 22:10:31 2001 @@ -30,13 +30,12 @@ ì´ ê°ì PHP htmlì´ ë°ìë¤ì´ë ìµë íì¼ í¬ê¸°ë¥¼ Byteë¨ìë¡ ëíë ëë¤. </para> <para> - In PHP 3, the following variables will be defined within the - destination script upon a successful upload, assuming that <link linkend="ini.register-globals">register_globals</link> is turned - on in <filename>php3.ini</filename>. If <link linkend="ini.track-vars">track_vars</link> is turned on, they will - also be available in PHP 3 within the global array - <varname>$HTTP_POST_VARS</varname>. Note that the following - variable names assume the use of the file upload name 'userfile', - as used in the example above: + PHP3ììë ì ë¡ëê° ìë£ëë©´ ì¤íë ì¤í¬ë¦½í¸ìë ë¤ì ë³ìë¤ì´ ì¤ì ëë¤. + (ë¬¼ë¡ <filename>php3.ini</filename> íì¼ì <link linkend="ini.register-globals">register_globals</link>ê° + ì¼ì ¸ìì´ì¼ íë¤.) + ëí ë§ì½ <link linkend="ini.track-vars">track_vars</link>ê° ì¼ì ¸ìì¼ë©´, + ì ìë³ì <varname>$HTTP_POST_VARS</varname> ë´ìë ì´ ë³ìë¤ì´ ì¤ì ëë¤. + ë¤ì ìì ì ìë ë³ìëª ë¤ì ì ë¡ëì 'userfile'ì´ë¼ë íëëª ì ì¬ì©í ê²ì¼ë¡ ê°ì íë¤.: <itemizedlist> <listitem> @@ -65,18 +64,14 @@ ìì ìì ìì ì°ë¦¬ë ê·¸ ì´ë¦ì "userfile"ì´ë¼ê³ ì íë¤. </para> <para> - - In PHP 4, the behaviour is slightly different, in that the new - global array <varname>$HTTP_POST_FILES</varname> is provided to - contain the uploaded file information. This is still only - available if <link linkend="ini.track-vars">track_vars</link> is - turned on, but <link linkend="ini.track-vars">track_vars</link> is - always turned on in versions of PHP after PHP 4.0.2. + PHP4ììë ëìì´ ì½ê° ë¤ë¥´ë¤. PHP4ììë ìë¡ëë íì¼ì ëí ì 보를 ê°ì§ê³ ìë + <varname>$HTTP_POST_FILES</varname> ì ì ë°°ì´ì ì§ìíë¤. + ì´ ë³ìë <link linkend="ini.track-vars">track_vars</link>ê° ì¼ì ¸ ìì´ì¼ë§ ì¬ì©ê°ë¥íì§ë§, + PHP 4.0.2 ì´íììë íì ì¼ì ¸ ìì¼ë¯ë¡ ê±±ì í íìë ìë¤. </para> <para> - The contents of <varname>$HTTP_POST_FILES</varname> are as - follows. Note that this assumes the use of the file upload name - 'userfile', as used in the example above: + <varname>$HTTP_POST_FILES</varname>ì ë´ì©ì ë¤ìê³¼ ê°ë¤. + ìì ìë ìì ê°ì´ ì ë¡ëì 'userfile'ì´ë¼ë íëëª ì ì¬ì©í ê²ì¼ë¡ ê°ì íë¤.: <variablelist> <varlistentry> <term> @@ -84,7 +79,7 @@ </term> <listitem> <para> - The original name of the file on the client machine. + í´ë¼ì´ì¸í¸ììì ìë íì¼ëª </para> </listitem> </varlistentry> @@ -94,9 +89,8 @@ </term> <listitem> <para> - The mime type of the file, if the browser provided this - information. An example would be - <literal>"image/gif"</literal>. + í´ë¹ íì¼ì mime íì . ë¸ë¼ì°ì ê° ì´ íì ëí ì 보를 ê°ì§ê³ ìë ê²½ì°ìë§ ì¤ì ëë¤. + (ì : <literal>"image/gif"</literal>) </para> </listitem> </varlistentry> @@ -106,7 +100,7 @@ </term> <listitem> <para> - The size, in bytes, of the uploaded file. + ì ë¡ëë íì¼ì í¬ê¸°. byte ë¨ìì´ë¤. </para> </listitem> </varlistentry> @@ -116,15 +110,14 @@ </term> <listitem> <para> - The temporary filename of the file in which the uploaded file - was stored on the server. + ì ë¡ëê° ìë£ëí ìë²ì ì ì¥ë íì¼ì íì¼ëª . (ììíì¼ì´ë¤.) </para> </listitem> </varlistentry> </variablelist> </para> <para> - ì ë¡ëë Fileì <filename>php.ini</filename>ì + ì ë¡ëë íì¼ì <filename>php.ini</filename>ì <link linkend="ini.upload-tmp-dir">upload_tmp_dir</link>ì§ììê° í¹ì ëë í 리를 ì§ì íì§ ìì¼ë©´, 기본ì ì¼ë¡ ì°ì ìë²ì default temporary directoryì ì ì¥ëë¤. ì´ ëí´í¸ ëë í 리ë PHPê° ëìê°ë ì»´í¨í°ì íê²½ë³ì <envar>TMPDIR</envar>ì ì¤ì íì¬ ë³ê²½í ì ìë¤. @@ -132,10 +125,8 @@ <example> <title>Validating file uploads</title> <para> - The following examples are for versions of PHP 3 greater than - 3.0.16, and versions of PHP 4 greater than 4.0.2. See the - function entries for <function>is_uploaded_file</function> and - <function>move_uploaded_file</function>. + ë¤ì ìì ë PHP3 3.0.16 ì´ìì´ë PHP4 4.0.2 ì´ìììë§ ì¤íì´ ê°ë¥íë¤. + ê·¸ë¦¬ê³ <function>is_uploaded_file</function>ê³¼ <function>move_uploaded_file</function>í¨ì를 ì´í´ë³´ì. </para> <programlisting role="php"> <?php @@ -149,13 +140,13 @@ ?> </programlisting> <para> + ì´ì ë²ì ì PHPììë ë¤ìê³¼ ê°ì ì²ë¦¬íì¬ì¼ íë¤. ê° íìíë¤. For earlier versions of PHP, you'll need to do something like the following. <note> <para> - This will <emphasis>not</emphasis> work in versions of PHP 4 - after 4.0.2. It depends on internal functionality of PHP which - changed after that version. + ì´ ìì ë PHP4 4.0.2ì´í ë²ì ììë ëìíì§ <emphasis>ìëë¤.</emphasis> + 4.0.2ì´í ë¶í°ë ë´ë¶ì ì¼ë¡ ì²ë¦¬íë ë°©ë²ì´ ë¬ë¼ì¡ê¸° ë문ì´ë¤. </para> </note> </para> @@ -181,10 +172,10 @@ </example> </para> <simpara> - ì ë¡ëë íì¼ì ë¤ë£¨ë PHP ì¤í¬ë¦½í¸ë ê·¸ íì¼ì ë¤ë£¨ë ìì ì ì¤ì í´ ì¤ íìê° ìë¤. - ì를ë¤ì´, ì¬ë¬ë¶ì <varname>$file_size</varname> ë³ì를 ì¬ì©íì¬ ë무 ìê±°ë í° íì¼ì ë²ë¦´ ìë ìë¤. - ëí ì¬ë¬ë¶ì <varname>$file_type</varname> ë³ì를 ê°ì§ê³ í¹ì í íì ì ë§ì§ ìë íì¼ì ë²ë¦´ ì ìë¤. - ì´ë¤ ë¡ì§ì´ë, ì¬ë¬ë¶ì ìì ëë í 리ì ìë íì¼ì ì§ì°ê±°ë ëì¤ì íìí ê²½ì°ìë ë¤ë¥¸ ê³³ì ì´ëìì¼ì¼ íë¤. + ì ë¡ëë íì¼ì ë¤ë£¨ë PHP ì¤í¬ë¦½í¸ë ê·¸ íì¼ì ë¤ë£¨ë ìì ì ì¤ì í´ ì¤ íìê° ìë¤. + ì를ë¤ì´, <varname>$file_size</varname> ë³ì를 ì¬ì©íì¬ ë무 ìê±°ë í° íì¼ì ë²ë¦´ ìë ìë¤. + ëí <varname>$file_type</varname> ë³ì를 ê°ì§ê³ í¹ì í íì ì ë§ì§ ìë íì¼ì ë²ë¦´ ì ìë¤. + ì´ë¤ ë¡ì§ì´ë, ìì ëë í 리ì ìë íì¼ì ì§ì°ê±°ë ëì¤ì íìí ê²½ì°ìë ë¤ë¥¸ ê³³ì ì´ëìì¼ì¼ íë¤. </simpara> <simpara> ë§ì½ ìì ëë í 리ì ìë íì¼ì í´ë¹ requestê° ëë ë ê¹ì§ë ì§ì°ê±°ë ì´ëìí¤ì§ ììë¤ë©´, @@ -199,8 +190,8 @@ 기본ê°ì 2ë©ê° ë°ì´í¸ì´ë¤. </simpara> <simpara> - Not validating which file you operate on may mean that users can access - sensitive information in other directories. + ì ë¡ëë íì¼ì ëí ê²ì¬ë¥¼ ê²ì리íë©´ ì¼ë° ì¬ì©ìë¤ì´ ìì¤í ì´ë + ë¤ë¥¸ ëë í 리ë´ì ë³´ìì ê´í ì ë³´ì ì ê·¼í ìë ìì¼ë 주ìí기 ë°ëë¤. </simpara> <simpara> CERN httpd ìë²ë clientë¡ë¶í° ì ë ¥ë°ì mime headerì ì쪽 ì¬ë°±ì 모ë strip off ìì¼ë²ë¦¬ë¯ë¡,
Index: phpdoc/kr/features/error-handling.xml diff -u phpdoc/kr/features/error-handling.xml:1.2 phpdoc/kr/features/error-handling.xml:1.3 --- phpdoc/kr/features/error-handling.xml:1.2 Tue Jan 9 03:27:54 2001 +++ phpdoc/kr/features/error-handling.xml Wed Jan 17 22:10:31 2001 @@ -36,7 +36,7 @@ <entry>8</entry> <entry>E_NOTICE </entry> <entry> - Notices (무ìí ì ìë ì림ì´ì§ë§ ë²ê·¸ì ê°ë¥ì±ì ê°ì§ê³ ìë ê²½ì°) + Notices (ì림-무ìí ì ìë ì림ì´ì§ë§ ë²ê·¸ì ê°ë¥ì±ì ê°ì§ê³ ìë ê²½ì°) </entry> <entry/> </row> @@ -95,61 +95,52 @@ </table> </para> <para> - The above values (either numerical or symbolic) are used to build - up a bitmask that specifies which errors to report. You can use the - <link linkend="language.operators.bitwise">bitwise operators</link> - to combine these values or mask out certain types of errors. Note - that only '|', '~', '!', and '&' will be understood within - <filename>php.ini</filename>, however, and that no bitwise - operators will be understood within <filename>php3.ini</filename>. + ìì ê°(ì«ì, ìì 모ë)ì ë í¬í¸í기 ìíë ë´ì©ì ë¹í¸ë¥¼ ì¤ì í기 ìí´ ì¡°í©íì¬ ì¬ì©í ì ìë¤. + ìíë ê°ì ì¡°í©í´ë´ê¸° ìí´ <link linkend="language.operators.bitwise">bitwise operators</link>ì + ìë ë¹í¸ ì¡°ì ì°ì°ì를 ì¬ì©íë¤. ë¨ <filename>php.ini</filename> íì¼ììë '|', '~', '!', '&'ì + ë¤ê°ì ì°ì°ìë§ ì¬ì©ê°ë¥íê³ , <filename>php3.ini</filename>ììë ì´ë¤ ë¹í¸ë¨ì ì°ì°ìë ì¬ì©í ì ìë¤. </para> <para> - In PHP 4, the default <link linkend="ini.error-reporting">error_reporting</link> setting is - <literal>E_ALL & ~E_NOTICE</literal>, meaning to display all errors - and warnings which are not E_NOTICE-level. In PHP 3, the default - setting is <literal>(E_ERROR | E_WARNING | E_PARSE)</literal>, - meaning the same thing. Note, however, that since constants are not - supported in PHP 3's <filename>php3.ini</filename>, the <link linkend="ini.error-reporting">error_reporting</link> setting there - must be numeric; hence, it is <literal>7</literal>. + PHP4ìì <link linkend="ini.error-reporting">error_reporting</link>ì 기본ê°ì + <literal>E_ALL & ~E_NOTICE</literal>ì´ë¤. ì¦, 모ë ìë¬ì ê²½ê³ ë¥¼ ì¶ë ¥íì§ë§ ì림(notice)ë ë í¬í íì§ ìëë¤. + PHP3ììì 기본ê°ì <literal>(E_ERROR | E_WARNING | E_PARSE)</literal>ì´ë¤. + ë´ì©ì ì¼ë¡ë PHP4ì ê°ë¤. + PHP3ì <filename>php3.ini</filename>ììë ìì를 ì¬ì©í ì¤ì ì ì¬ì©í ì ìì¼ë¯ë¡, + <link linkend="ini.error-reporting">error_reporting</link>ì ê°ì ë°ëì ì«ìì¬ì¼ íë¤. + ê·¸ë¬ë¯ë¡ 기본ê°ì <literal>7</literal>ì´ë¤. </para> <para> - The initial setting can be changed in the ini file with the <link linkend="ini.error-reporting">error_reporting</link> directive, in - your Apache <filename>httpd.conf</filename> file with the - php_error_reporting (php3_error_reporting for PHP 3) directive, and - lastly it may be set at runtime within a script by using the - <function>error_reporting</function> function. + ì´ê¸° ì¤ì ì ini íì¼ì ìë <link linkend="ini.error-reporting">error_reporting</link> ì§ìì를 ì¬ì©íì¬ ë³í ì ìê³ , + ìíì¹ì <filename>httpd.conf</filename>íì¼ìì php_error_reporting (PHP3ììë php3_error_reporting) ì§ìì를 + ì¬ì©íì¬ ì¤ì í ìë ìë¤. ëí, ì¤í¬ë¦½í¸ ì¤íì¤ì <function>error_reporting</function> í¨ì를 ì¬ì©íì¬ ì¤ì í ìë ìë¤. </para> <warning> <para> - When upgrading code or servers from PHP 3 to PHP 4 you should - check these settings and calls to - <function>error_reporting</function> or you might disable - reporting the new error types, especially E_COMPILE_ERROR. This - may lead to empty documents without any feedback of what happened - or where to look for the problem. + PHP3ìì PHP4ë¡ íë¡ê·¸ë¨ ì½ëë ìë² ì체를 ì´ì í ê²½ì°, + ì´ ì¤ì ê³¼ <function>error_reporting</function> í¨ìì í¸ì¶ ë´ìì ë°ëì íì¸íê±°ë, + E_COMPILE_ERROR를 í¬í¨í ìë¡ì´ ìë¬ íì ì ëí ë í¬í ì ë¶ê°ë¥íê² íì¬ì¼ íë¤. + ì칫íë©´ ì´ë¤ 문ì ê° ì´ëì ë°ìíëê°ì ëí ì ë³´ìì´ ë¹ ë¬¸ì를 ë§ë¤ì´ ë¼ ìë ìì¼ë¯ë¡ 주ìíì. </para> </warning> <para> - 모ë <link linkend="language.expressions">PHP ííì(expression)</link>ì "@"를 ìì ë¶ì´ê³ í¸ì¶ëë©´ error reportingì íì§ ìëë¤. - ë§ì½ <link linkend="ini.track-errors">track_errors</link> ìµì ì´ Enabledë¡ ëì´ ìê³ í´ë¹ 문ì¥ìì ìë¬ê° ë°ìíë¤ë©´, - $php_errormsgë¼ë ì ìë³ìì ìë¬ ë©ìì§ê° ë´ê²¨ ìê² ëë¤. + 모ë <link linkend="language.expressions">PHP ííì(expression)</link>ì "@"를 ìì ë¶ì´ê³ í¸ì¶ëë©´ + error reportingì íì§ ìëë¤. ë§ì½ <link linkend="ini.track-errors">track_errors</link> ìµì ì´ Enabledë¡ + ëì´ ìê³ í´ë¹ 문ì¥ìì ìë¬ê° ë°ìíë¤ë©´, $php_errormsgë¼ë ì ìë³ìì ìë¬ ë©ìì§ê° ë´ê²¨ ìê² ëë¤. </para> <warning> <para> - Currently the <link linkend="language.operators.errorcontrol">@ - error-control operator</link> prefix will even disable error - reporting for critical errors that will terminate script - execution. Among other things, this means that if you use <link linkend="language.operators.errorcontrol">@</link> to suppress - errors from a certain function and either it isn't available or - has been mistyped, the script will die right there with no - indication as to why. + íì¬ <link linkend="language.operators.errorcontrol">@ + error-control operator</link> ì íì(prefix)ë ì¤í¬ë¦½í¸ë¥¼ ì¤ë¨ìí¬ ì ëì + ì¹ëª ì ì¸ ìë¬ì ëí´ìë ìë¬ ë í¬í ì íì§ ìê² íë¤. + í¹í <link linkend="language.operators.errorcontrol">@</link>ì´ í¹ì í¨ìì ìë¬ë í¬í ì + ìµì íë ¤ê³ ì¬ì©ë ê²½ì°ì, ì´ í¨ìê° ì¡´ì¬ íì§ ìê±°ë, ì´ë¦ì ì못 ì´ ê²½ì° í´ë¹ ì¤í¬ë¦½í¸ë + ìë¬´ë° ì´ì 를 íìíì§ ìê³ ì£½ì´ë²ë¦¬ê² ëë¤. </para> </warning> <para> - Below we can see an example of using the error handling capabilities in - PHP. We define a error handling function which logs the information into - a file (using an XML format), and e-mails the developer in case a critical - error in the logic happens. + ìëì PHPìì ìë¬ë¥¼ ë¤ë£¨ë 기ë¥ì ëí ì¬ì© ì를 ì ì´ ëìë¤. + ì´ ììì ì°ë¦¬ë íì¼ë¡(XML í¬ë§·ì ì¬ì©) í´ë¹ ì ë³´ì ë¡ê·¸ë¥¼ ë¨ê¸°ê³ , + ë ¼ë¦¬ì ì¸ ë¬¸ì ë¡ ì¹ëª ì ì¸ ìë¬ê° ì긴경ì°ë ê°ë°ììê² e-mailì ë³´ë´ë ìë¬ í¸ë¤ë§ í¨ì를 ì ìíìë¤. <example> <title>Using error handling in a script</title> <programlisting role="php"> @@ -254,9 +245,8 @@ ?> </programlisting> </example> - This is just a simple example showing how to use the - <link linkend="ref.errorfunc">Error Handling and Logging - functions</link>. + ì´ê²ì <link linkend="ref.errorfunc">Error Handling and Logging functions</link>ì + ìë í¨ìë¤ì ì´ë»ê² ì¬ì©íë ê°ë¥¼ ë³´ì¬ì£¼ë ê°ë¨í ìì´ë¤. </para> <para> See also <function>error_reporting</function>, Index: phpdoc/kr/features/file-upload.xml diff -u phpdoc/kr/features/file-upload.xml:1.3 phpdoc/kr/features/file-upload.xml:1.4 --- phpdoc/kr/features/file-upload.xml:1.3 Wed Jan 10 02:46:55 2001 +++ phpdoc/kr/features/file-upload.xml Wed Jan 17 22:10:31 2001 @@ -30,13 +30,12 @@ ì´ ê°ì PHP htmlì´ ë°ìë¤ì´ë ìµë íì¼ í¬ê¸°ë¥¼ Byteë¨ìë¡ ëíë ëë¤. </para> <para> - In PHP 3, the following variables will be defined within the - destination script upon a successful upload, assuming that <link linkend="ini.register-globals">register_globals</link> is turned - on in <filename>php3.ini</filename>. If <link linkend="ini.track-vars">track_vars</link> is turned on, they will - also be available in PHP 3 within the global array - <varname>$HTTP_POST_VARS</varname>. Note that the following - variable names assume the use of the file upload name 'userfile', - as used in the example above: + PHP3ììë ì ë¡ëê° ìë£ëë©´ ì¤íë ì¤í¬ë¦½í¸ìë ë¤ì ë³ìë¤ì´ ì¤ì ëë¤. + (ë¬¼ë¡ <filename>php3.ini</filename> íì¼ì <link linkend="ini.register-globals">register_globals</link>ê° + ì¼ì ¸ìì´ì¼ íë¤.) + ëí ë§ì½ <link linkend="ini.track-vars">track_vars</link>ê° ì¼ì ¸ìì¼ë©´, + ì ìë³ì <varname>$HTTP_POST_VARS</varname> ë´ìë ì´ ë³ìë¤ì´ ì¤ì ëë¤. + ë¤ì ìì ì ìë ë³ìëª ë¤ì ì ë¡ëì 'userfile'ì´ë¼ë íëëª ì ì¬ì©í ê²ì¼ë¡ ê°ì íë¤.: <itemizedlist> <listitem> @@ -65,18 +64,14 @@ ìì ìì ìì ì°ë¦¬ë ê·¸ ì´ë¦ì "userfile"ì´ë¼ê³ ì íë¤. </para> <para> - - In PHP 4, the behaviour is slightly different, in that the new - global array <varname>$HTTP_POST_FILES</varname> is provided to - contain the uploaded file information. This is still only - available if <link linkend="ini.track-vars">track_vars</link> is - turned on, but <link linkend="ini.track-vars">track_vars</link> is - always turned on in versions of PHP after PHP 4.0.2. + PHP4ììë ëìì´ ì½ê° ë¤ë¥´ë¤. PHP4ììë ìë¡ëë íì¼ì ëí ì 보를 ê°ì§ê³ ìë + <varname>$HTTP_POST_FILES</varname> ì ì ë°°ì´ì ì§ìíë¤. + ì´ ë³ìë <link linkend="ini.track-vars">track_vars</link>ê° ì¼ì ¸ ìì´ì¼ë§ ì¬ì©ê°ë¥íì§ë§, + PHP 4.0.2 ì´íììë íì ì¼ì ¸ ìì¼ë¯ë¡ ê±±ì í íìë ìë¤. </para> <para> - The contents of <varname>$HTTP_POST_FILES</varname> are as - follows. Note that this assumes the use of the file upload name - 'userfile', as used in the example above: + <varname>$HTTP_POST_FILES</varname>ì ë´ì©ì ë¤ìê³¼ ê°ë¤. + ìì ìë ìì ê°ì´ ì ë¡ëì 'userfile'ì´ë¼ë íëëª ì ì¬ì©í ê²ì¼ë¡ ê°ì íë¤.: <variablelist> <varlistentry> <term> @@ -84,7 +79,7 @@ </term> <listitem> <para> - The original name of the file on the client machine. + í´ë¼ì´ì¸í¸ììì ìë íì¼ëª </para> </listitem> </varlistentry> @@ -94,9 +89,8 @@ </term> <listitem> <para> - The mime type of the file, if the browser provided this - information. An example would be - <literal>"image/gif"</literal>. + í´ë¹ íì¼ì mime íì . ë¸ë¼ì°ì ê° ì´ íì ëí ì 보를 ê°ì§ê³ ìë ê²½ì°ìë§ ì¤ì ëë¤. + (ì : <literal>"image/gif"</literal>) </para> </listitem> </varlistentry> @@ -106,7 +100,7 @@ </term> <listitem> <para> - The size, in bytes, of the uploaded file. + ì ë¡ëë íì¼ì í¬ê¸°. byte ë¨ìì´ë¤. </para> </listitem> </varlistentry> @@ -116,15 +110,14 @@ </term> <listitem> <para> - The temporary filename of the file in which the uploaded file - was stored on the server. + ì ë¡ëê° ìë£ëí ìë²ì ì ì¥ë íì¼ì íì¼ëª . (ììíì¼ì´ë¤.) </para> </listitem> </varlistentry> </variablelist> </para> <para> - ì ë¡ëë Fileì <filename>php.ini</filename>ì + ì ë¡ëë íì¼ì <filename>php.ini</filename>ì <link linkend="ini.upload-tmp-dir">upload_tmp_dir</link>ì§ììê° í¹ì ëë í 리를 ì§ì íì§ ìì¼ë©´, 기본ì ì¼ë¡ ì°ì ìë²ì default temporary directoryì ì ì¥ëë¤. ì´ ëí´í¸ ëë í 리ë PHPê° ëìê°ë ì»´í¨í°ì íê²½ë³ì <envar>TMPDIR</envar>ì ì¤ì íì¬ ë³ê²½í ì ìë¤. @@ -132,10 +125,8 @@ <example> <title>Validating file uploads</title> <para> - The following examples are for versions of PHP 3 greater than - 3.0.16, and versions of PHP 4 greater than 4.0.2. See the - function entries for <function>is_uploaded_file</function> and - <function>move_uploaded_file</function>. + ë¤ì ìì ë PHP3 3.0.16 ì´ìì´ë PHP4 4.0.2 ì´ìììë§ ì¤íì´ ê°ë¥íë¤. + ê·¸ë¦¬ê³ <function>is_uploaded_file</function>ê³¼ <function>move_uploaded_file</function>í¨ì를 ì´í´ë³´ì. </para> <programlisting role="php"> <?php @@ -149,13 +140,13 @@ ?> </programlisting> <para> + ì´ì ë²ì ì PHPììë ë¤ìê³¼ ê°ì ì²ë¦¬íì¬ì¼ íë¤. ê° íìíë¤. For earlier versions of PHP, you'll need to do something like the following. <note> <para> - This will <emphasis>not</emphasis> work in versions of PHP 4 - after 4.0.2. It depends on internal functionality of PHP which - changed after that version. + ì´ ìì ë PHP4 4.0.2ì´í ë²ì ììë ëìíì§ <emphasis>ìëë¤.</emphasis> + 4.0.2ì´í ë¶í°ë ë´ë¶ì ì¼ë¡ ì²ë¦¬íë ë°©ë²ì´ ë¬ë¼ì¡ê¸° ë문ì´ë¤. </para> </note> </para> @@ -181,10 +172,10 @@ </example> </para> <simpara> - ì ë¡ëë íì¼ì ë¤ë£¨ë PHP ì¤í¬ë¦½í¸ë ê·¸ íì¼ì ë¤ë£¨ë ìì ì ì¤ì í´ ì¤ íìê° ìë¤. - ì를ë¤ì´, ì¬ë¬ë¶ì <varname>$file_size</varname> ë³ì를 ì¬ì©íì¬ ë무 ìê±°ë í° íì¼ì ë²ë¦´ ìë ìë¤. - ëí ì¬ë¬ë¶ì <varname>$file_type</varname> ë³ì를 ê°ì§ê³ í¹ì í íì ì ë§ì§ ìë íì¼ì ë²ë¦´ ì ìë¤. - ì´ë¤ ë¡ì§ì´ë, ì¬ë¬ë¶ì ìì ëë í 리ì ìë íì¼ì ì§ì°ê±°ë ëì¤ì íìí ê²½ì°ìë ë¤ë¥¸ ê³³ì ì´ëìì¼ì¼ íë¤. + ì ë¡ëë íì¼ì ë¤ë£¨ë PHP ì¤í¬ë¦½í¸ë ê·¸ íì¼ì ë¤ë£¨ë ìì ì ì¤ì í´ ì¤ íìê° ìë¤. + ì를ë¤ì´, <varname>$file_size</varname> ë³ì를 ì¬ì©íì¬ ë무 ìê±°ë í° íì¼ì ë²ë¦´ ìë ìë¤. + ëí <varname>$file_type</varname> ë³ì를 ê°ì§ê³ í¹ì í íì ì ë§ì§ ìë íì¼ì ë²ë¦´ ì ìë¤. + ì´ë¤ ë¡ì§ì´ë, ìì ëë í 리ì ìë íì¼ì ì§ì°ê±°ë ëì¤ì íìí ê²½ì°ìë ë¤ë¥¸ ê³³ì ì´ëìì¼ì¼ íë¤. </simpara> <simpara> ë§ì½ ìì ëë í 리ì ìë íì¼ì í´ë¹ requestê° ëë ë ê¹ì§ë ì§ì°ê±°ë ì´ëìí¤ì§ ììë¤ë©´, @@ -199,8 +190,8 @@ 기본ê°ì 2ë©ê° ë°ì´í¸ì´ë¤. </simpara> <simpara> - Not validating which file you operate on may mean that users can access - sensitive information in other directories. + ì ë¡ëë íì¼ì ëí ê²ì¬ë¥¼ ê²ì리íë©´ ì¼ë° ì¬ì©ìë¤ì´ ìì¤í ì´ë + ë¤ë¥¸ ëë í 리ë´ì ë³´ìì ê´í ì ë³´ì ì ê·¼í ìë ìì¼ë 주ìí기 ë°ëë¤. </simpara> <simpara> CERN httpd ìë²ë clientë¡ë¶í° ì ë ¥ë°ì mime headerì ì쪽 ì¬ë°±ì 모ë strip off ìì¼ë²ë¦¬ë¯ë¡,