cvs: phpdoc-kr /reference/outcontrol/functions ob-gzhandler.xml ob-start.xml
| From: | LEE Yun-young | Date: | Tue, 11 Nov 2008 19:38:40 +0000 |
| Subject: | cvs: phpdoc-kr /reference/outcontrol/functions ob-gzhandler.xml ob-start.xml | ||
| Groups: | php.doc.kr | ||
| Request: | Send a blank email to doc-kr+get-765@lists.php.net to get a copy of this message | ||
progcom Tue Nov 11 19:38:40 2008 UTC
Modified files:
/phpdoc-kr/reference/outcontrol/functions ob-gzhandler.xml
ob-start.xml
Log:
sync
http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml diff -u phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml:1.5 phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml:1.6 --- phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml:1.5 Sat Jun 23 13:51:41 2007 +++ phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml Tue Nov 11 19:38:40 2008 @@ -1,37 +1,89 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.ob-gzhandler" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ob_gzhandler</refname> - <refpurpose> - gzip ì¶ë ¥ ë²í¼ë¥¼ ìí ob_start ì½ë°± í¨ìì ëë¤. - </refpurpose> - </refnamediv> - <refsect1> - <title>ì¤ëª </title> - <methodsynopsis> - <type>string</type><methodname>ob_gzhandler</methodname> - <methodparam><type>string</type><parameter>buffer</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <note> - <para> - <parameter>mode</parameter>ë PHP 4.0.5ìì ì¶ê°ëììµëë¤. - </para> - </note> - <para> - <function>ob_gzhandler</function>ë ì¹ íì´ì§ ìì¶ì ì§ìíë ì¹ - ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí - <function>ob_start</function>ì ì½ë°± í¨ìë¡ ì¬ì©íëë¡ ì¤ë¹ëììµëë¤. - <function>ob_gzhandler</function>ê° ì¤ì ë¡ ìì¶ ë°ì´í°ë¥¼ ì ì¡í기 ì ì, - ë¸ë¼ì°ì ê° ì´ë í ë´ì© ì¸ì½ë© íí("gzip", "deflate", ê·¸ ì¸ìë none)를 - ë°ìë¤ì´ëì§ íì¸íì¬, ê·¸ì ë°ë¼ì ì¶ë ¥í©ëë¤. ì¹ íì´ì§ ìì¶ì - íì©íë ì¬ë°ë¥¸ í¤ë를 ì ì¡íë 모ë ë¸ë¼ì°ì 를 ì§ìí©ëë¤. - </para> - <para> - <example> - <title><function>ob_gzhandler</function> ìì </title> - <programlisting role="php"> +<!-- EN-Revision: 1.15 Maintainer: progcom Status: ready --> +<refentry xml:id="function.ob-gzhandler" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>ob_gzhandler</refname> + <refpurpose>gzip ì¶ë ¥ ë²í¼ë¥¼ ìí ob_start ì½ë°± í¨ì</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ob_gzhandler</methodname> + <methodparam><type>string</type><parameter>buffer</parameter></methodparam> + <methodparam><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + <function>ob_gzhandler</function>ë ì¹ íì´ì§ ìì¶ì ì§ìíë ì¹ + ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí + <function>ob_start</function>ì ì½ë°± í¨ìë¡ ì¬ì©íëë¡ ì¤ë¹ëììµëë¤. + <function>ob_gzhandler</function>ê° ì¤ì ë¡ ìì¶ ë°ì´í°ë¥¼ ì ì¡í기 ì ì, + ë¸ë¼ì°ì ê° ì´ë í ë´ì© ì¸ì½ë© íí("gzip", "deflate", ê·¸ ì¸ìë none)를 + ë°ìë¤ì´ëì§ íì¸íì¬, ê·¸ì ë°ë¼ì ì¶ë ¥í©ëë¤. ì¹ íì´ì§ ìì¶ì + íì©íë ì¬ë°ë¥¸ í¤ë를 ì ì¡íë 모ë ë¸ë¼ì°ì 를 ì§ìí©ëë¤. ë¸ë¼ì°ì ê° ìì¶ + íì´ì§ë¥¼ ì§ìíì§ ìì¼ë©´, ì´ í¨ìë &false;를 ë°íí©ëë¤. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>buffer</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>mode</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.5</entry> + <entry> + <parameter>mode</parameter> ì¸ì ì¶ê°. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ob_gzhandler</function> ìì </title> + <programlisting role="php"> <![CDATA[ <?php @@ -40,28 +92,45 @@ ?> <html> <body> -<p>This should be a compressed page. +<p>This should be a compressed page.</p> </html> <body> ]]> - </programlisting> - </example> - </para> - <para> - ì°¸ê³ : <function>ob_start</function>, - <function>ob_end_flush</function>. - </para> - <note> - <para> - <function>ob_gzhandler</function>ì <link - linkend="ini.zlib.output-compression">ini.zlib.output_compression</link>ì - ë ë¤ ì¬ì©í ìë ììµëë¤. <function>ob_gzhandler</function>ë³´ë¤ <link - linkend="ini.zlib.output-compression">ini.zlib.output_compression</link>ì - ê¶ì¥í©ëë¤. - </para> - </note> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + <function>ob_gzhandler</function>ë <link linkend="ref.zlib">zlib</link> + íì¥ì´ íìí©ëë¤. + </para> + </note> + <note> + <para> + <function>ob_gzhandler</function>ì <link + linkend="ini.zlib.output-compression">zlib.output_compression</link>ì + ë ë¤ ì¬ì©í ìë ììµëë¤. <function>ob_gzhandler</function>ë³´ë¤ <link + linkend="ini.zlib.output-compression">zlib.output_compression</link>ì + ê¶ì¥í©ëë¤. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ob_start</function></member> + <member><function>ob_end_flush</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/outcontrol/functions/ob-start.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-kr/reference/outcontrol/functions/ob-start.xml diff -u phpdoc-kr/reference/outcontrol/functions/ob-start.xml:1.8 phpdoc-kr/reference/outcontrol/functions/ob-start.xml:1.9 --- phpdoc-kr/reference/outcontrol/functions/ob-start.xml:1.8 Mon Nov 10 07:09:24 2008 +++ phpdoc-kr/reference/outcontrol/functions/ob-start.xml Tue Nov 11 19:38:40 2008 @@ -1,71 +1,160 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> - <refentry xml:id="function.ob-start" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ob_start</refname> - <refpurpose>ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤.</refpurpose> - </refnamediv> - <refsect1> - <title>ì¤ëª </title> - <methodsynopsis> - <type>bool</type><methodname>ob_start</methodname> - <methodparam choice="opt"><type>callback</type><parameter> - output_callback - </parameter></methodparam> - </methodsynopsis> - <para> - ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤. ì¶ë ¥ ë²í¼ë§ì íì±ííë©´, (í¤ë를 ì ì¸í) - ì¤í¬ë¦½í¸ì 모ë ì¶ë ¥ì ë´ë¶ ë²í¼ì ì ì¥íê³ , ì¤ì ë¡ ì ì¡íì§ ììµëë¤. - </para> - <para> - ì´ ë´ë¶ ë²í¼ì ë´ì©ì <function>ob_get_contents</function>를 ì¬ì©íì¬ - 문ìì´ ë³ìë¡ ë³µì¬í ì ììµëë¤. ë´ë¶ ë²í¼ì ì ì¥í ë´ì©ì ì¶ë ¥íë ¤ë©´, - <function>ob_end_flush</function>를 ì¬ì©íììì¤. ë°ëë¡ - <function>ob_end_clean</function>ì ë²í¼ ë´ì©ì ë²ë¦½ëë¤. - </para> - <para> - ì íì ì¸ <parameter>output_callback</parameter> í¨ì를 ì§ì í ì - ììµëë¤. ì´ í¨ìë 문ìì´ì ì¸ìë¡ ë°ê³ , 문ìì´ì ë°íí´ì¼ í©ëë¤. ì´ - í¨ìë <function>ob_end_flush</function>를 í¸ì¶íê±°ë, ìì²ì´ ëë ë - ì¶ë ¥ ë²í¼ê° ë¸ë¼ì°ì ë¡ ì ì¡í ë í¸ì¶ë©ëë¤. - <parameter>output_callback</parameter>ì ì¶ë ¥ ë²í¼ì 모ë ë´ì©ì ì¸ìë¡ - ë°ìì ë¸ë¼ì°ì ë¡ ì ì¡í ì ì¶ë ¥ ë²í¼ë¥¼ ê²°ê³¼ë¡ ë°íí ê²ì´ 기ëë©ëë¤. - <parameter>output_callback</parameter>ê° í¸ì¶í ì ìë í¨ìê° ìëë¼ë©´, - ì´ í¨ìë &false;를 ë°íí©ëë¤. - </para> - <note> - <para> - PHP 4.0.4ìì, <function>ob_gzhandler</function>ê° ì¹ íì´ì§ ìì¶ì - ì§ìíë ì¹ ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí ë°©ë²ì¼ë¡ - ìê²¼ìµëë¤. <function>ob_gzhandler</function>ë ë¸ë¼ì°ì ê° íì©íë ë´ì© - ì¸ì½ë© íí를 íì¸íê³ ê·¸ì ë°ë¼ ì¶ë ¥í©ëë¤. - </para> - </note> - <note> - <para> - PHP 4.3.2 ì´ì ìë ì¤íí ì ìë - <parameter>output_callback</parameter>ì ì§ì í´ë &false;를 ë°ííì§ - ìììµëë¤. - </para> - </note> - <para> - ì¶ë ¥ ë²í¼ë ìì¬ì§ ì ì기ì, ë¤ë¥¸ <function>ob_start</function>ê° íì±í - ì¤ì´ë¼ë <function>ob_start</function>를 í¸ì¶í ì ììµëë¤. ë¨ì§ ì íí - íìì <function>ob_end_flush</function>를 í¸ì¶íëë¡ íììì¤. ë¤ì¤ ì¶ë ¥ - ì½ë°± í¨ì를 íì±ííë©´, ì¶ë ¥ì ê°ì¸ì§ ììëë¡ ë¹ ì ¸ëê°ë©´ì ë³ê²½ë©ëë¤. - </para> - <para> - <function>ob_end_clean</function>, - <function>ob_end_flush</function>, <function>ob_clean</function>, - <function>ob_flush</function>, <function>ob_start</function>ë ì½ë°± - í¨ììì í¸ì¶í ì ììµëë¤. ì´ë¤ì ì½ë°± í¨ììì í¸ì¶í ìì íëì - ì ìëì´ ìì§ ììµëë¤. ë²í¼ì ë´ì©ì ì§ì°ë ¤ë©´ ì½ë°± í¨ììì ""(ë¹ - 문ìì´)ì ë°ííììì¤. - </para> - <para> - <example> - <title>ì¬ì©ì ì ì ì½ë°± í¨ì ìì </title> - <programlisting role="php"> +<!-- EN-Revision: 1.26 Maintainer: progcom Status: ready --> +<refentry xml:id="function.ob-start" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>ob_start</refname> + <refpurpose>ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ob_start</methodname> + <methodparam choice="opt"><type>callback</type><parameter>output_callback</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>chunk_size</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>erase</parameter></methodparam> + </methodsynopsis> + <para> + ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤. ì¶ë ¥ ë²í¼ë§ì íì±ííë©´, (í¤ë를 ì ì¸í) + ì¤í¬ë¦½í¸ì 모ë ì¶ë ¥ì ë´ë¶ ë²í¼ì ì ì¥íê³ , ì¤ì ë¡ ì ì¡íì§ ììµëë¤. + </para> + <para> + ì´ ë´ë¶ ë²í¼ì ë´ì©ì <function>ob_get_contents</function>를 ì´ì©í´ì + 문ìì´ ë³ìë¡ ë³µì¬í ì ììµëë¤. ë´ë¶ ë²í¼ì ë¤ì´ìë ë´ì©ì ì¶ë ¥íë ¤ë©´, + <function>ob_end_flush</function>를 ì¬ì©íììì¤. ë°ëë¡, + <function>ob_end_clean</function>ì ë²í¼ ë´ì©ì ì¶ë ¥ ìì´ ì§ìëë¤. + </para> + <warning> + <para> + ëªëª ì¹ ìë²(ìíì¹ ë±)ë ì½ë°± í¨ì를 í¸ì¶í ë ì¤í¬ë¦½í¸ì ìì ëë í 리를 + ë°ê¿ëë¤. ì½ë°± í¨ì ììì + <literal>chdir(dirname($_SERVER['SCRIPT_FILENAME']))</literal> ë±ì + ì¬ì©íì¬ ë³µê·í ì ììµëë¤. + </para> + </warning> + <para> + ì¶ë ¥ ë²í¼ë ìì ì ììµëë¤. ì¦, <function>ob_start</function>ê° ìëì¤ì¼ + ë, ë¤ë¥¸ <function>ob_start</function>를 í¸ì¶í ì ììµëë¤. ì íí íìì + <function>ob_end_flush</function>ì í¸ì¶íë©´ ìë¬´ë° ë¬¸ì ê° ììµëë¤. ì¬ë¬ + ê°ì ì¶ë ¥ ì½ë°± í¨ìê° ìëì¤ì´ë©´, ì¶ë ¥ì ê°ì¸ì¬ì§ ììëë¡ íí°ë§ë©ëë¤. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>output_callback</parameter></term> + <listitem> + <para> + ì íì ì¸ <parameter>output_callback</parameter> í¨ì를 ì§ì í ì + ììµëë¤. ì´ í¨ìë 문ìì´ì ì¸ìë¡ ë°ê³ , 문ìì´ì ë°íí´ì¼ í©ëë¤. ì´ + í¨ìë (<function>ob_flush</function>, <function>ob_clean</function> + ë±ì í¨ìë¡) ì¶ë ¥ ë²í¼ë¥¼ ë³´ë´ê±°ë(ì ì¡) ë¹ì¸ ë, ëë ìì² ë§ì§ë§ì + ì¶ë ¥ ë²í¼ë¥¼ ë¸ë¼ì°ì ë¡ ë³´ë¼ ë í¸ì¶ë©ëë¤. + <parameter>output_callback</parameter>ì´ í¸ì¶ëë©´, ì¶ë ¥ ë²í¼ì ë´ì©ì + ì¸ìë¡ ë°ê³ , ë¸ë¼ì°ì ë¡ ì ì¡í ì ì¶ë ¥ ë²í¼ë¥¼ ê²°ê³¼ë¡ ë°ííì¬ + ìëí©ëë¤. <parameter>output_callback</parameter>ì´ í¸ì¶í ì ìë + í¨ìê° ìëë¼ë©´, ì´ í¨ìë &false;를 ë°íí©ëë¤. + </para> + <para> + ì½ë°± í¨ìê° ë ì¸ì를 ê°ì§ê³ ìì¼ë©´, ëë²ì§¸ ì¸ìë + <constant>PHP_OUTPUT_HANDLER_START</constant>, + <constant>PHP_OUTPUT_HANDLER_CONT</constant>, + <constant>PHP_OUTPUT_HANDLER_END</constant>ë¡ êµ¬ì±ë ë¹í¸ íëë¡ + ì±ìì§ëë¤. + </para> + <para> + <parameter>output_callback</parameter>ì´ &false;를 ë°ííë©´, ì ì ë ¥ì´ + ë¸ë¼ì°ì ë¡ ì ì¡ë©ëë¤. + </para> + <para> + <parameter>output_callback</parameter> ì¸ìë &null; ê°ì ë겨ì ì§ëê° + ì ììµëë¤. + </para> + <para> + <function>ob_end_clean</function>, <function>ob_end_flush</function>, + <function>ob_clean</function>, <function>ob_flush</function>, + <function>ob_start</function>ë ì½ë°± í¨ììì í¸ì¶í ì ììµëë¤. ì´ + í¨ìë¤ì ì½ë°± í¨ììì í¸ì¶íë©´, ê·¸ ëìì ì ìëì´ ìì§ ììµëë¤. ë²í¼ + ë´ì©ì ì§ì°ê³ ì¶ì¼ë©´, ì½ë°± í¨ììì ""(ë¹ ë¬¸ìì´)ì ë°ííë©´ ë©ëë¤. + ëí, ì¶ë ¥ ë²í¼ë§ í¨ì를 ì¬ì©íë <literal>print_r($expression, + true)</literal>, <literal>highlight_file($filename, true)</literal> + ë±ì í¨ìë ì½ë°± í¨ììì í¸ì¶í ì ììµëë¤. + </para> + <note> + <para> + PHP 4.0.4ìì, <function>ob_gzhandler</function>ê° ì¹ íì´ì§ ìì¶ì + ì§ìíë ì¹ ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí ë°©ë²ì¼ë¡ + ìê²¼ìµëë¤. <function>ob_gzhandler</function>ë ë¸ë¼ì°ì ê° íì©íë ë´ì© + ì¸ì½ë© íí를 íì¸íê³ ê·¸ì ë°ë¼ ì¶ë ¥í©ëë¤. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>chunk_size</parameter></term> + <listitem> + <para> + ì íì ì¸ <parameter>chunk_size</parameter> ì¸ìê° ì ë¬ëë©´, ë²í¼ 길ì´ê° + <parameter>chunk_size</parameter>ì ê°ê±°ë ì´ê³¼íê² ëë ì¶ë ¥ í¸ì¶ íì + ë²í¼ê° ì ì¡ë©ëë¤. 기본ê°ì¸ 0ì í¨ì를 ë§ì§ë§ìë§ í¸ì¶íë©°, í¹ìê° 1ì + <parameter>chunk_size</parameter>를 4096ì¼ë¡ ì¤ì í©ëë¤. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>erase</parameter></term> + <listitem> + <para> + ì íì ì¸ <parameter>erase</parameter> ì¸ì를 &false;ë¡ ì¤ì íë©´, + ì¤í¬ë¦½í¸ê° ì¢ ë£ë ë ê¹ì§ ë²í¼ê° ì§ìì§ì§ ììµëë¤. (PHP 4.3.0ë¶í°) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.2</entry> + <entry> + <parameter>output_callback</parameter>ê° ì¤íë ì ìì ë, &false;를 + ë°ííê² ëììµëë¤. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>ì¬ì©ì ì ì ì½ë°± í¨ì ìì </title> + <programlisting role="php"> <![CDATA[ <?php @@ -81,7 +170,7 @@ <html> <body> -<p>It's like comparing apples to oranges. +<p>It's like comparing apples to oranges.</p> </body> </html> @@ -91,30 +180,38 @@ ?> ]]> - </programlisting> - <para> - ì¶ë ¥ì: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ <html> <body> -<p>It's like comparing oranges to oranges. +<p>It's like comparing oranges to oranges.</p> </body> </html> ]]> - </screen> - </example> - </para> - <para> - ì°¸ê³ : <function>ob_get_contents</function>, - <function>ob_end_flush</function>, - <function>ob_end_clean</function>, - <function>ob_implicit_flush</function>, - <function>ob_gzhandler</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ob_get_contents</function></member> + <member><function>ob_end_clean</function></member> + <member><function>ob_end_flush</function></member> + <member><function>ob_implict_flush</function></member> + <member><function>ob_gzhandler</function></member> + <member><function>ob_iconv_handler</function></member> + <member><function>mb_output_handler</function></member> + <member><function>ob_tidyhandler</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml diff -u phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml:1.5 phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml:1.6 --- phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml:1.5 Sat Jun 23 13:51:41 2007 +++ phpdoc-kr/reference/outcontrol/functions/ob-gzhandler.xml Tue Nov 11 19:38:40 2008 @@ -1,37 +1,89 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.ob-gzhandler" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ob_gzhandler</refname> - <refpurpose> - gzip ì¶ë ¥ ë²í¼ë¥¼ ìí ob_start ì½ë°± í¨ìì ëë¤. - </refpurpose> - </refnamediv> - <refsect1> - <title>ì¤ëª </title> - <methodsynopsis> - <type>string</type><methodname>ob_gzhandler</methodname> - <methodparam><type>string</type><parameter>buffer</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <note> - <para> - <parameter>mode</parameter>ë PHP 4.0.5ìì ì¶ê°ëììµëë¤. - </para> - </note> - <para> - <function>ob_gzhandler</function>ë ì¹ íì´ì§ ìì¶ì ì§ìíë ì¹ - ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí - <function>ob_start</function>ì ì½ë°± í¨ìë¡ ì¬ì©íëë¡ ì¤ë¹ëììµëë¤. - <function>ob_gzhandler</function>ê° ì¤ì ë¡ ìì¶ ë°ì´í°ë¥¼ ì ì¡í기 ì ì, - ë¸ë¼ì°ì ê° ì´ë í ë´ì© ì¸ì½ë© íí("gzip", "deflate", ê·¸ ì¸ìë none)를 - ë°ìë¤ì´ëì§ íì¸íì¬, ê·¸ì ë°ë¼ì ì¶ë ¥í©ëë¤. ì¹ íì´ì§ ìì¶ì - íì©íë ì¬ë°ë¥¸ í¤ë를 ì ì¡íë 모ë ë¸ë¼ì°ì 를 ì§ìí©ëë¤. - </para> - <para> - <example> - <title><function>ob_gzhandler</function> ìì </title> - <programlisting role="php"> +<!-- EN-Revision: 1.15 Maintainer: progcom Status: ready --> +<refentry xml:id="function.ob-gzhandler" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>ob_gzhandler</refname> + <refpurpose>gzip ì¶ë ¥ ë²í¼ë¥¼ ìí ob_start ì½ë°± í¨ì</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ob_gzhandler</methodname> + <methodparam><type>string</type><parameter>buffer</parameter></methodparam> + <methodparam><type>int</type><parameter>mode</parameter></methodparam> + </methodsynopsis> + <para> + <function>ob_gzhandler</function>ë ì¹ íì´ì§ ìì¶ì ì§ìíë ì¹ + ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí + <function>ob_start</function>ì ì½ë°± í¨ìë¡ ì¬ì©íëë¡ ì¤ë¹ëììµëë¤. + <function>ob_gzhandler</function>ê° ì¤ì ë¡ ìì¶ ë°ì´í°ë¥¼ ì ì¡í기 ì ì, + ë¸ë¼ì°ì ê° ì´ë í ë´ì© ì¸ì½ë© íí("gzip", "deflate", ê·¸ ì¸ìë none)를 + ë°ìë¤ì´ëì§ íì¸íì¬, ê·¸ì ë°ë¼ì ì¶ë ¥í©ëë¤. ì¹ íì´ì§ ìì¶ì + íì©íë ì¬ë°ë¥¸ í¤ë를 ì ì¡íë 모ë ë¸ë¼ì°ì 를 ì§ìí©ëë¤. ë¸ë¼ì°ì ê° ìì¶ + íì´ì§ë¥¼ ì§ìíì§ ìì¼ë©´, ì´ í¨ìë &false;를 ë°íí©ëë¤. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>buffer</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>mode</parameter></term> + <listitem> + <para> + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.5</entry> + <entry> + <parameter>mode</parameter> ì¸ì ì¶ê°. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>ob_gzhandler</function> ìì </title> + <programlisting role="php"> <![CDATA[ <?php @@ -40,28 +92,45 @@ ?> <html> <body> -<p>This should be a compressed page. +<p>This should be a compressed page.</p> </html> <body> ]]> - </programlisting> - </example> - </para> - <para> - ì°¸ê³ : <function>ob_start</function>, - <function>ob_end_flush</function>. - </para> - <note> - <para> - <function>ob_gzhandler</function>ì <link - linkend="ini.zlib.output-compression">ini.zlib.output_compression</link>ì - ë ë¤ ì¬ì©í ìë ììµëë¤. <function>ob_gzhandler</function>ë³´ë¤ <link - linkend="ini.zlib.output-compression">ini.zlib.output_compression</link>ì - ê¶ì¥í©ëë¤. - </para> - </note> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + <function>ob_gzhandler</function>ë <link linkend="ref.zlib">zlib</link> + íì¥ì´ íìí©ëë¤. + </para> + </note> + <note> + <para> + <function>ob_gzhandler</function>ì <link + linkend="ini.zlib.output-compression">zlib.output_compression</link>ì + ë ë¤ ì¬ì©í ìë ììµëë¤. <function>ob_gzhandler</function>ë³´ë¤ <link + linkend="ini.zlib.output-compression">zlib.output_compression</link>ì + ê¶ì¥í©ëë¤. + </para> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ob_start</function></member> + <member><function>ob_end_flush</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/outcontrol/functions/ob-start.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-kr/reference/outcontrol/functions/ob-start.xml diff -u phpdoc-kr/reference/outcontrol/functions/ob-start.xml:1.8 phpdoc-kr/reference/outcontrol/functions/ob-start.xml:1.9 --- phpdoc-kr/reference/outcontrol/functions/ob-start.xml:1.8 Mon Nov 10 07:09:24 2008 +++ phpdoc-kr/reference/outcontrol/functions/ob-start.xml Tue Nov 11 19:38:40 2008 @@ -1,71 +1,160 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> - <refentry xml:id="function.ob-start" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>ob_start</refname> - <refpurpose>ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤.</refpurpose> - </refnamediv> - <refsect1> - <title>ì¤ëª </title> - <methodsynopsis> - <type>bool</type><methodname>ob_start</methodname> - <methodparam choice="opt"><type>callback</type><parameter> - output_callback - </parameter></methodparam> - </methodsynopsis> - <para> - ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤. ì¶ë ¥ ë²í¼ë§ì íì±ííë©´, (í¤ë를 ì ì¸í) - ì¤í¬ë¦½í¸ì 모ë ì¶ë ¥ì ë´ë¶ ë²í¼ì ì ì¥íê³ , ì¤ì ë¡ ì ì¡íì§ ììµëë¤. - </para> - <para> - ì´ ë´ë¶ ë²í¼ì ë´ì©ì <function>ob_get_contents</function>를 ì¬ì©íì¬ - 문ìì´ ë³ìë¡ ë³µì¬í ì ììµëë¤. ë´ë¶ ë²í¼ì ì ì¥í ë´ì©ì ì¶ë ¥íë ¤ë©´, - <function>ob_end_flush</function>를 ì¬ì©íììì¤. ë°ëë¡ - <function>ob_end_clean</function>ì ë²í¼ ë´ì©ì ë²ë¦½ëë¤. - </para> - <para> - ì íì ì¸ <parameter>output_callback</parameter> í¨ì를 ì§ì í ì - ììµëë¤. ì´ í¨ìë 문ìì´ì ì¸ìë¡ ë°ê³ , 문ìì´ì ë°íí´ì¼ í©ëë¤. ì´ - í¨ìë <function>ob_end_flush</function>를 í¸ì¶íê±°ë, ìì²ì´ ëë ë - ì¶ë ¥ ë²í¼ê° ë¸ë¼ì°ì ë¡ ì ì¡í ë í¸ì¶ë©ëë¤. - <parameter>output_callback</parameter>ì ì¶ë ¥ ë²í¼ì 모ë ë´ì©ì ì¸ìë¡ - ë°ìì ë¸ë¼ì°ì ë¡ ì ì¡í ì ì¶ë ¥ ë²í¼ë¥¼ ê²°ê³¼ë¡ ë°íí ê²ì´ 기ëë©ëë¤. - <parameter>output_callback</parameter>ê° í¸ì¶í ì ìë í¨ìê° ìëë¼ë©´, - ì´ í¨ìë &false;를 ë°íí©ëë¤. - </para> - <note> - <para> - PHP 4.0.4ìì, <function>ob_gzhandler</function>ê° ì¹ íì´ì§ ìì¶ì - ì§ìíë ì¹ ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí ë°©ë²ì¼ë¡ - ìê²¼ìµëë¤. <function>ob_gzhandler</function>ë ë¸ë¼ì°ì ê° íì©íë ë´ì© - ì¸ì½ë© íí를 íì¸íê³ ê·¸ì ë°ë¼ ì¶ë ¥í©ëë¤. - </para> - </note> - <note> - <para> - PHP 4.3.2 ì´ì ìë ì¤íí ì ìë - <parameter>output_callback</parameter>ì ì§ì í´ë &false;를 ë°ííì§ - ìììµëë¤. - </para> - </note> - <para> - ì¶ë ¥ ë²í¼ë ìì¬ì§ ì ì기ì, ë¤ë¥¸ <function>ob_start</function>ê° íì±í - ì¤ì´ë¼ë <function>ob_start</function>를 í¸ì¶í ì ììµëë¤. ë¨ì§ ì íí - íìì <function>ob_end_flush</function>를 í¸ì¶íëë¡ íììì¤. ë¤ì¤ ì¶ë ¥ - ì½ë°± í¨ì를 íì±ííë©´, ì¶ë ¥ì ê°ì¸ì§ ììëë¡ ë¹ ì ¸ëê°ë©´ì ë³ê²½ë©ëë¤. - </para> - <para> - <function>ob_end_clean</function>, - <function>ob_end_flush</function>, <function>ob_clean</function>, - <function>ob_flush</function>, <function>ob_start</function>ë ì½ë°± - í¨ììì í¸ì¶í ì ììµëë¤. ì´ë¤ì ì½ë°± í¨ììì í¸ì¶í ìì íëì - ì ìëì´ ìì§ ììµëë¤. ë²í¼ì ë´ì©ì ì§ì°ë ¤ë©´ ì½ë°± í¨ììì ""(ë¹ - 문ìì´)ì ë°ííììì¤. - </para> - <para> - <example> - <title>ì¬ì©ì ì ì ì½ë°± í¨ì ìì </title> - <programlisting role="php"> +<!-- EN-Revision: 1.26 Maintainer: progcom Status: ready --> +<refentry xml:id="function.ob-start" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>ob_start</refname> + <refpurpose>ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ob_start</methodname> + <methodparam choice="opt"><type>callback</type><parameter>output_callback</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>chunk_size</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>erase</parameter></methodparam> + </methodsynopsis> + <para> + ì¶ë ¥ ë²í¼ë§ì ì¼ëë¤. ì¶ë ¥ ë²í¼ë§ì íì±ííë©´, (í¤ë를 ì ì¸í) + ì¤í¬ë¦½í¸ì 모ë ì¶ë ¥ì ë´ë¶ ë²í¼ì ì ì¥íê³ , ì¤ì ë¡ ì ì¡íì§ ììµëë¤. + </para> + <para> + ì´ ë´ë¶ ë²í¼ì ë´ì©ì <function>ob_get_contents</function>를 ì´ì©í´ì + 문ìì´ ë³ìë¡ ë³µì¬í ì ììµëë¤. ë´ë¶ ë²í¼ì ë¤ì´ìë ë´ì©ì ì¶ë ¥íë ¤ë©´, + <function>ob_end_flush</function>를 ì¬ì©íììì¤. ë°ëë¡, + <function>ob_end_clean</function>ì ë²í¼ ë´ì©ì ì¶ë ¥ ìì´ ì§ìëë¤. + </para> + <warning> + <para> + ëªëª ì¹ ìë²(ìíì¹ ë±)ë ì½ë°± í¨ì를 í¸ì¶í ë ì¤í¬ë¦½í¸ì ìì ëë í 리를 + ë°ê¿ëë¤. ì½ë°± í¨ì ììì + <literal>chdir(dirname($_SERVER['SCRIPT_FILENAME']))</literal> ë±ì + ì¬ì©íì¬ ë³µê·í ì ììµëë¤. + </para> + </warning> + <para> + ì¶ë ¥ ë²í¼ë ìì ì ììµëë¤. ì¦, <function>ob_start</function>ê° ìëì¤ì¼ + ë, ë¤ë¥¸ <function>ob_start</function>를 í¸ì¶í ì ììµëë¤. ì íí íìì + <function>ob_end_flush</function>ì í¸ì¶íë©´ ìë¬´ë° ë¬¸ì ê° ììµëë¤. ì¬ë¬ + ê°ì ì¶ë ¥ ì½ë°± í¨ìê° ìëì¤ì´ë©´, ì¶ë ¥ì ê°ì¸ì¬ì§ ììëë¡ íí°ë§ë©ëë¤. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>output_callback</parameter></term> + <listitem> + <para> + ì íì ì¸ <parameter>output_callback</parameter> í¨ì를 ì§ì í ì + ììµëë¤. ì´ í¨ìë 문ìì´ì ì¸ìë¡ ë°ê³ , 문ìì´ì ë°íí´ì¼ í©ëë¤. ì´ + í¨ìë (<function>ob_flush</function>, <function>ob_clean</function> + ë±ì í¨ìë¡) ì¶ë ¥ ë²í¼ë¥¼ ë³´ë´ê±°ë(ì ì¡) ë¹ì¸ ë, ëë ìì² ë§ì§ë§ì + ì¶ë ¥ ë²í¼ë¥¼ ë¸ë¼ì°ì ë¡ ë³´ë¼ ë í¸ì¶ë©ëë¤. + <parameter>output_callback</parameter>ì´ í¸ì¶ëë©´, ì¶ë ¥ ë²í¼ì ë´ì©ì + ì¸ìë¡ ë°ê³ , ë¸ë¼ì°ì ë¡ ì ì¡í ì ì¶ë ¥ ë²í¼ë¥¼ ê²°ê³¼ë¡ ë°ííì¬ + ìëí©ëë¤. <parameter>output_callback</parameter>ì´ í¸ì¶í ì ìë + í¨ìê° ìëë¼ë©´, ì´ í¨ìë &false;를 ë°íí©ëë¤. + </para> + <para> + ì½ë°± í¨ìê° ë ì¸ì를 ê°ì§ê³ ìì¼ë©´, ëë²ì§¸ ì¸ìë + <constant>PHP_OUTPUT_HANDLER_START</constant>, + <constant>PHP_OUTPUT_HANDLER_CONT</constant>, + <constant>PHP_OUTPUT_HANDLER_END</constant>ë¡ êµ¬ì±ë ë¹í¸ íëë¡ + ì±ìì§ëë¤. + </para> + <para> + <parameter>output_callback</parameter>ì´ &false;를 ë°ííë©´, ì ì ë ¥ì´ + ë¸ë¼ì°ì ë¡ ì ì¡ë©ëë¤. + </para> + <para> + <parameter>output_callback</parameter> ì¸ìë &null; ê°ì ë겨ì ì§ëê° + ì ììµëë¤. + </para> + <para> + <function>ob_end_clean</function>, <function>ob_end_flush</function>, + <function>ob_clean</function>, <function>ob_flush</function>, + <function>ob_start</function>ë ì½ë°± í¨ììì í¸ì¶í ì ììµëë¤. ì´ + í¨ìë¤ì ì½ë°± í¨ììì í¸ì¶íë©´, ê·¸ ëìì ì ìëì´ ìì§ ììµëë¤. ë²í¼ + ë´ì©ì ì§ì°ê³ ì¶ì¼ë©´, ì½ë°± í¨ììì ""(ë¹ ë¬¸ìì´)ì ë°ííë©´ ë©ëë¤. + ëí, ì¶ë ¥ ë²í¼ë§ í¨ì를 ì¬ì©íë <literal>print_r($expression, + true)</literal>, <literal>highlight_file($filename, true)</literal> + ë±ì í¨ìë ì½ë°± í¨ììì í¸ì¶í ì ììµëë¤. + </para> + <note> + <para> + PHP 4.0.4ìì, <function>ob_gzhandler</function>ê° ì¹ íì´ì§ ìì¶ì + ì§ìíë ì¹ ë¸ë¼ì°ì ì gz-ì¸ì½ë ë°ì´í°ë¥¼ ì ì¡í기 ìí ë°©ë²ì¼ë¡ + ìê²¼ìµëë¤. <function>ob_gzhandler</function>ë ë¸ë¼ì°ì ê° íì©íë ë´ì© + ì¸ì½ë© íí를 íì¸íê³ ê·¸ì ë°ë¼ ì¶ë ¥í©ëë¤. + </para> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>chunk_size</parameter></term> + <listitem> + <para> + ì íì ì¸ <parameter>chunk_size</parameter> ì¸ìê° ì ë¬ëë©´, ë²í¼ 길ì´ê° + <parameter>chunk_size</parameter>ì ê°ê±°ë ì´ê³¼íê² ëë ì¶ë ¥ í¸ì¶ íì + ë²í¼ê° ì ì¡ë©ëë¤. 기본ê°ì¸ 0ì í¨ì를 ë§ì§ë§ìë§ í¸ì¶íë©°, í¹ìê° 1ì + <parameter>chunk_size</parameter>를 4096ì¼ë¡ ì¤ì í©ëë¤. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>erase</parameter></term> + <listitem> + <para> + ì íì ì¸ <parameter>erase</parameter> ì¸ì를 &false;ë¡ ì¤ì íë©´, + ì¤í¬ë¦½í¸ê° ì¢ ë£ë ë ê¹ì§ ë²í¼ê° ì§ìì§ì§ ììµëë¤. (PHP 4.3.0ë¶í°) + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.3.2</entry> + <entry> + <parameter>output_callback</parameter>ê° ì¤íë ì ìì ë, &false;를 + ë°ííê² ëììµëë¤. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>ì¬ì©ì ì ì ì½ë°± í¨ì ìì </title> + <programlisting role="php"> <![CDATA[ <?php @@ -81,7 +170,7 @@ <html> <body> -<p>It's like comparing apples to oranges. +<p>It's like comparing apples to oranges.</p> </body> </html> @@ -91,30 +180,38 @@ ?> ]]> - </programlisting> - <para> - ì¶ë ¥ì: - </para> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ <html> <body> -<p>It's like comparing oranges to oranges. +<p>It's like comparing oranges to oranges.</p> </body> </html> ]]> - </screen> - </example> - </para> - <para> - ì°¸ê³ : <function>ob_get_contents</function>, - <function>ob_end_flush</function>, - <function>ob_end_clean</function>, - <function>ob_implicit_flush</function>, - <function>ob_gzhandler</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ob_get_contents</function></member> + <member><function>ob_end_clean</function></member> + <member><function>ob_end_flush</function></member> + <member><function>ob_implict_flush</function></member> + <member><function>ob_gzhandler</function></member> + <member><function>ob_iconv_handler</function></member> + <member><function>mb_output_handler</function></member> + <member><function>ob_tidyhandler</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: