cvs: phpdoc-kr /install ini.xml snippet.apache2.compat.xml /install/unix apache2.xml /install/windows apache2.xml /reference/bc/functions bcpow.xml
bcscale.xml /reference/bzip2/functions bzcompress.xml bzdecompress.xml /reference/dir/functions chdir.xml chroot.xml getcwd.xml scandir.xml

From: Date: Fri, 21 Nov 2008 15:18:20 +0000
Subject: cvs: phpdoc-kr /install ini.xml snippet.apache2.compat.xml /install/unix apache2.xml /install/windows apache2.xml /reference/bc/functions bcpow.xml
bcscale.xml /reference/bzip2/functions bzcompress.xml bzdecompress.xml /reference/dir/functions chdir.xml chroot.xml getcwd.xml scandir.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-783@lists.php.net to get a copy of this message
progcom Fri Nov 21 15:18:20 2008 UTC Added files: /phpdoc-kr/install/unix apache2.xml Modified files: /phpdoc-kr/install ini.xml snippet.apache2.compat.xml /phpdoc-kr/install/windows apache2.xml /phpdoc-kr/reference/bc/functions bcpow.xml bcscale.xml /phpdoc-kr/reference/bzip2/functions bzcompress.xml bzdecompress.xml /phpdoc-kr/reference/dir/functions chdir.xml chroot.xml getcwd.xml scandir.xml Log: sync and apache2 install

http://cvs.php.net/viewvc.cgi/phpdoc-kr/install/ini.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/install/ini.xml diff -u /dev/null phpdoc-kr/install/ini.xml:1.3 --- /dev/null Fri Nov 21 15:18:20 2008 +++ phpdoc-kr/install/ini.xml Fri Nov 21 15:18:20 2008 @@ -0,0 +1,295 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- EN-Revision: 1.22 Maintainer: progcom Status: ready --> + <chapter xml:id="configuration" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>실행시 설정</title> + + <sect1 xml:id="configuration.file"> + <title>설정 파일</title> + + <simpara> + 설정 파일(&php.ini;)은 PHP를 시작할 때 읽습니다. PHP 서버 모듈 버전은 웹 + 서버가 시작할 때 한번만 일어납니다. <acronym>CGI</acronym>와 + <acronym>CLI</acronym> 버전에서는 매번 일어납니다. + </simpara> + <para> + &php.ini;는 세 위치에서 찾아집니다 (순서대로): + <itemizedlist> + <listitem> + <para> + SAPI 모듈 지정 위치 (아파치 2에서 <literal>PHPIniDir</literal> 지시어, + CGI와 CLI에서 <literal>-c</literal> 명령줄 옵션, NSAPI에서 + <literal>php_ini</literal> 인수, THTTPD에서 + <literal>PHP_INI_PATH</literal> 환경 변수) + </para> + </listitem> + <listitem> + <para> + <varname>PHPRC</varname> 환경 변수. PHP 5.2.0 이전에는 아래 언급한 + 레지스트리 키 이후에 확인했습니다. + </para> + </listitem> + <listitem> + <para> + PHP 5.2.0부터, 다음 레지스트리 위치가 순서대로 찾아집니다: + <literal>HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z\IniFilePath</literal>, + <literal>HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y\IniFilePath</literal>, + <literal>HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x\IniFilePath</literal>. + x, y, z는 PHP 메이저, 마이너, 릴리즈 버전을 의미합니다. + </para> + </listitem> + <listitem> + <para> + <literal>HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath</literal> + (윈도우 레지스트리 위치) + </para> + </listitem> + <listitem> + <para> + 현재 작업 디렉토리 (CLI 제외) + </para> + </listitem> + <listitem> + <para> + 웹 서버 디렉토리(SAPI 모듈의 경우)나 PHP 디렉토리(윈도우 제외) + </para> + </listitem> + <listitem> + <para> + 윈도우 디렉토리(<filename class="directory">C:\windows</filename>나 + <filename class="directory">C:\winnt</filename>)(윈도우)나 + <literal>--with-config-file-path</literal> 컴파일 시 옵션 + </para> + </listitem> + </itemizedlist> + </para> + <para> + <filename>php-SAPI.ini</filename>이 존재하면(SAPI는 사용하는 SAPI, + 그러므로 파일명은 <filename>php-cli.ini</filename>, + <filename>php-apache.ini</filename> 등), &php.ini; 대신 사용합니다. SAPI + 이름은 <function>php_sapi_name</function>으로 확인할 수 있습니다. + </para> + <note> + <para> + 아파치 웹 서버는 시작할 때 디렉토리를 루트로 변경하므로, PHP는 루트 + 파일시스템에 &php.ini;가 존재할 경우 이를 읽으려고 시도합니다. + </para> + </note> + <para> + 확장에 의해 다뤄지는 &php.ini; 지시어는 각 확장 페이지에 문서가 있습니다. + <link linkend="ini">핵심 지시어 목록</link>은 부록에 있습니다. 모든 PHP + 지시어가 매뉴얼에 나와있지 않을 수 있습니다. PHP 버전에 따른 완전한 지시어 + 목록은, &php.ini; 파일을 읽어보십시오. 또는, CVS에서 <link + xlink:href="&url.php.cvs.phpini;">최신 &php.ini;</link>를 찾아볼 수 + 있습니다. + </para> + <para> + <example> + <title>&php.ini; 예제</title> + <programlisting role="ini"> +<![CDATA[ +; any text on a line after an unquoted semicolon (;) is ignored +[php] ; section markers (text within square brackets) are also ignored +; Boolean values can be set to either: +; true, on, yes +; or false, off, no, none +register_globals = off +track_errors = yes + +; you can enclose strings in double-quotes +include_path = ".:/usr/local/lib/php" + +; backslashes are treated the same as any other character +include_path = ".;c:\php\lib" +]]> +</programlisting> +<!-- TODO: add more details about values and expressions --> + </example> + </para> + <para> + PHP 5.1.0부터, .ini 파일 안에서 이미 존재하는 .ini 변수를 참조할 수 + 있습니다. 예: <literal>open_basedir = ${open_basedir} + ":/new/dir"</literal>. + </para> + </sect1> + + <sect1 xml:id="configuration.changes"> + <title>설정을 바꾸는 방법</title> + + <sect2 xml:id="configuration.changes.apache"> + <title>PHP를 아파치 모듈로 실행</title> + <simpara> + PHP를 아파치 모듈로 사용할 때, 아파치 설정 파일(즉 &httpd.conf;)과 + &htaccess; 파일에서 설정을 변경할 수 있습니다. 이를 위해서는 + "AllowOverride Options"나 "AllowOverride All" 권한이 필요합니다. + </simpara> + + <para> + 몇몇 아파치 지시어는 PHP 설정을 아파치 설정 파일에서 바꿀 수 있게 합니다. + 어떤 지시어가 <constant>PHP_INI_ALL</constant>, + <constant>PHP_INI_PERDIR</constant>, + <constant>PHP_INI_SYSTEM</constant>인지는, <link + linkend="ini.list">php.ini 지시어 목록</link> 부록을 참고하십시오. + </para> + + <para> + <variablelist> + <varlistentry> + <term> + <systemitem role="directive">php_value</systemitem> + <parameter>name</parameter> + <parameter>value</parameter> + </term> + <listitem> + <para> + 지정한 지시어의 값을 설정합니다. + <constant>PHP_INI_ALL</constant>과 + <constant>PHP_INI_PERDIR</constant> 형식 지시어에만 사용할 수 + 있습니다. 이전 설정 값을 지우려면 값에 <literal>none</literal>을 + 사용합니다. + </para> + <note> + <simpara> + <systemitem role="directive">php_value</systemitem>로 논리 값을 + 설정하지 마십시오. 대신 <systemitem + role="directive">php_flag</systemitem>(아래 참고)를 사용해야 + 합니다. + </simpara> + </note> + </listitem> + </varlistentry> + <varlistentry> + <term> + <systemitem role="directive">php_flag</systemitem> + <parameter>name</parameter> + <parameter>on|off</parameter> + </term> + <listitem> + <para> + 논리값 지시어를 설정합니다. + <constant>PHP_INI_ALL</constant>과 + <constant>PHP_INI_PERDIR</constant> 형식 지시어에만 사용할 수 + 있습니다. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <systemitem role="directive">php_admin_value</systemitem> + <parameter>name</parameter> + <parameter>value</parameter> + </term> + <listitem> + <para> + 지정한 지시어의 값을 설정합니다. &htaccess; 파일에서 <emphasis>사용할 + 수 없습니다</emphasis>. <systemitem + role="directive">php_admin_value</systemitem>로 설정하는 지시어 + 형식은 &htaccess;나 <function>ini_set</function>으로 덮어쓸 수 + 없습니다. 이전 설정 값을 지우려면 값에 <literal>none</literal>을 + 사용합니다. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <systemitem role="directive">php_admin_flag</systemitem> + <parameter>name</parameter> + <parameter>on|off</parameter> + </term> + <listitem> + <para> + 논리값 지시어를 설정합니다. &htaccess; 파일에서 <emphasis>사용할 + 수 없습니다</emphasis>. <systemitem + role="directive">php_admin_flag</systemitem>로 설정하는 지시어 + 형식은 &htaccess;로 덮어쓸 수 없습니다. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + <para> + <example> + <title>아파치 설정 예제</title> + <programlisting role="ini"> +<![CDATA[ +<IfModule mod_php5.c> + php_value include_path ".:/usr/local/lib/php" + php_admin_flag safe_mode on +</IfModule> +<IfModule mod_php4.c> + php_value include_path ".:/usr/local/lib/php" + php_admin_flag safe_mode on +</IfModule> +]]> + </programlisting> + </example> + </para> + <caution> + <para> + PHP 상수는 PHP 밖에 존재하지 않습니다. 예를 들어, &httpd.conf;에서 + <constant>E_ALL</constant>나 <constant>E_NOTICE</constant> 등의 PHP + 상수를 사용할 수 없습니다. <link + linkend="ini.error-reporting">error_reporting</link> 지시어에 이런 + 설정을 하면, 아무런 의미를 가지지 않고 <emphasis>0</emphasis>으로 + 평가됩니다. 대신 할당된 비트마스크 값을 사용하십시오. 이런 상수는 + &php.ini;에서는 사용할 수 있습니다. + </para> + </caution> + </sect2> + + <sect2 xml:id="configuration.changes.windows"> + <title>윈도우 레지스트리에서 PHP 설정 바꾸기</title> + <simpara> + PHP를 윈도우에서 실행할 때, 설정값은 윈도우 레지스트리를 사용하여 + 디렉토리 기반으로 변경할 수 있습니다. 설정값은 레지스트리 키 + <literal>HKLM\SOFTWARE\PHP\Per Directory Values</literal>에 저장되며, + 보조키는 경로명에 해당합니다. 예를 들어, + <literal>c:\inetpub\wwwroot</literal> 디렉토리를 위한 설정값은 + <literal>HKLM\SOFTWARE\PHP\Per Directory + Values\c\inetpub\wwwroot</literal> 키에 저장됩니다. 디렉토리 설정은 이 + 디렉토리와 그 밑의 서브디렉토리에서 실행하는 모든 스크립트에 적용됩니다. + 키 아래 값은 PHP 설정 지시어 이름을 가지고 문자열 값이여야 합니다. 값에 + 사용하는 PHP 상수는 해석되지 않습니다. 그러나, + <constant>PHP_INI_USER</constant>로 바꿀 수 있는 설정값만 이 방법을 + 사용할 수 있습니다. <constant>PHP_INI_PERDIR</constant> 값은 사용할 수 + 없습니다. + </simpara> + </sect2> + + <sect2 xml:id="configuration.changes.other"> + <title>PHP의 다른 인터페이스</title> + <para> + PHP를 어떻게 실행하는가에 관계 없이, <function>ini_set</function>으로 + 몇몇 값을 실행시에 변경할 수 있습니다. 자세한 정보는 + <function>ini_set</function> 페이지 문서를 참고하십시오. + </para> + <para> + 시스템의 모든 설정 목록과 현재 값을 얻고 싶다면, + <function>phpinfo</function>를 실행하여 결과 페이지를 살펴보십시오. 각 + 설정 지시어의 값은 실행시에 <function>ini_get</function>이나 + <function>get_cfg_var</function>를 사용하여 접근할 수 있습니다. + </para> + </sect2> + </sect1> + + </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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> http://cvs.php.net/viewvc.cgi/phpdoc-kr/install/snippet.apache2.compat.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/install/snippet.apache2.compat.xml diff -u /dev/null phpdoc-kr/install/snippet.apache2.compat.xml:1.3 --- /dev/null Fri Nov 21 15:18:20 2008 +++ phpdoc-kr/install/snippet.apache2.compat.xml Fri Nov 21 15:18:20 2008 @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> + <note xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>PHP와 아파치 2.0.x 호환 노트</title> + <para> + 다음 버전의 PHP가 최신 버전의 아파치 2.0.x에서 작동합니다: + <itemizedlist spacing="compact"> + <listitem> + <simpara> + <link xlink:href="&url.php.downloads;">&url.php.downloads;</link>에서 + 받을 수 있는 PHP 4.3.0 이후. + </simpara> + </listitem> + <listitem> + <simpara> + 최신 안정 개발 버전. + 소스 코드를 <link xlink:href="&url.php.snapshots;php5-latest.tar.gz"> + &url.php.snapshots;php5-latest.tar.gz</link>에서 얻거나 윈도우 + 바이너리를 <link xlink:href="&url.php.snapshots;win32/php5-win32-latest.zip"> + &url.php.snapshots;win32/php5-win32-latest.zip</link>에서 얻을 수 + 있습니다. + </simpara> + </listitem> + <listitem> + <simpara> + 릴리즈 예정 버전을 <link + xlink:href="&url.php.prerelease;">&url.php.prerelease;</link>에서 + 받을 수 있습니다. + </simpara> + </listitem> + <listitem> + <simpara> + 언제든지 <link xlink:href="&url.php.anoncvs;">익명 CVS</link>를 + 통해서 PHP를 받을 수 있습니다. + </simpara> + </listitem> + </itemizedlist> + 위 PHP 버전은 아파치 2.0.40 이후에 호환됩니다. + </para> + <para> + 아파치 2.0 <literal>SAPI</literal> 지원은 PHP 4.2.0부터 시작했습니다. + PHP 4.2.3은 아파치 2.0.39에서 작동하며, PHP 4.2.3과 다른 아파치 버전을 + 사용하지 마십시오. 그러나, 권장하는 설정은 최신 버전의 아파치2와 PHP + 4.3.0 이후를 사용하는 것입니다. + </para> + <para> + 언급한 모든 PHP 버전은 아파치 1.3.x에서 잘 동작합니다. + </para> + </note> + +<!-- 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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> http://cvs.php.net/viewvc.cgi/phpdoc-kr/install/windows/apache2.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/install/windows/apache2.xml diff -u /dev/null phpdoc-kr/install/windows/apache2.xml:1.3 --- /dev/null Fri Nov 21 15:18:20 2008 +++ phpdoc-kr/install/windows/apache2.xml Fri Nov 21 15:18:20 2008 @@ -0,0 +1,156 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- EN-Revision: 1.16 Maintainer: progcom Status: ready --> + <sect1 xml:id="install.windows.apache2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>마이크로소프트 윈도우에서 Apache 2.0.x</title> + <para> + 이 섹션은 마이크로소프트 윈도우 시스템에서 아파치 2.0.x에 PHP 설치에 관한 + 정보와 힌트를 가지고 있습니다. <link + linkend="install.windows.apache1">아파치 1.3.x 사용자를 위한 지시와 + 정보는 별도 페이지</link>에 존재합니다. + </para> + <note> + <para> + <link linkend="install.windows.manual">수동 설치 단계</link>를 먼저 + 읽어야 합니다! + </para> + </note> + <note> + <title>아파치 2.2.x 지원</title> + <para> + 아파치 2.2.x 사용자는 해당하는 DLL 파일이 + <filename>php5apache2_2.dll</filename>이고, PHP 5.2.0부터 존재한다는 + 점을 생각하고 아래 문서를 사용해야 합니다. <link + xlink:href="&url.php.snapshots;">&url.php.snapshots;</link>를 + 참고하십시오. + </para> + </note> + + &warn.apache2.compat; + + <para> + 아파치 2.0.x 서버에 대한 이해를 위하여 <link + xlink:href="&url.apache2.docs;">아파치 문서</link>를 읽기를 권합니다. + 또한, 아파치 2.0.x에 대한 <link xlink:href="&url.apache2.windows;">윈도우 + 특정 노트</link>도 읽어보십시오. + </para> + + &install.snippet.apache2.compat; + + <warning> + <para> + 아파치 2.0.x는 윈도우 NT 4.0, 윈도우 2000, 윈도우 XP에서 실행하도록 + 설계되었습니다. 현 시점에서, 윈도우 9x 지원은 미완성입니다. 아파치 + 2.0.x는 아직 이러한 플랫폼에서 작동한다는 보장이 없습니다. + </para> + </warning> + <para> + 가장 최신 버전의 <link xlink:href="&url.apache;">아파치 2.0.x</link>와 + 적합한 PHP 버전을 받으십시오. <link linkend="install.windows.manual">수동 + 설치 단계</link>에 따르고 PHP와 아파치 통합을 진행하십시오. + </para> + <para> + 윈도우에서 아파치 2.0.x에 PHP를 설치하는 방법은 두 가지가 있습니다. + 하나는 CGI 바이너리이고, 다른 하나는 아파치 모듈 DLL입니다. 두 방법 모두 + &httpd.conf;를 수정하여 아파치에서 PHP를 작동하도록 하고 서버를 재시작 + 해야 합니다. + </para> + + &note.apache.slashes; + + <sect2 xml:id="install.windows.apache2.cgi"> + <title>CGI 바이너리로 설치</title> + + <para> + CGI 바이너리로 설치하려면 아래 세 줄을 아파치 &httpd.conf; 설정 파일에 + 넣어야 합니다: + <example> + <title>CGI로 PHP와 아파치 2.0</title> + <programlisting role="apache-conf"> +<![CDATA[ +ScriptAlias /php/ "c:/php/" +AddType application/x-httpd-php .php + +# For PHP 4 +Action application/x-httpd-php "/php/php.exe" + +# For PHP 5 +Action application/x-httpd-php "/php/php-cgi.exe" +]]> + </programlisting> + </example> + </para> + &warn.install.cgi; + </sect2> + + <sect2 xml:id="install.windows.apache2.module"> + <title>아파치 모듈로 설치</title> + <para> + 아파치 2.0에 PHP 모듈을 설치하려면 아래 두 줄을 아파치 &httpd.conf; 설정 + 파일에 넣어야 합니다: + <example> + <title>모듈로 PHP와 Apache 2.0</title> + <programlisting role="apache-conf"> +<![CDATA[ +# For PHP 4 do something like this: +LoadModule php4_module "c:/php/php4apache2.dll" +# Don't forget to copy the php4apache2.dll file from the sapi directory! +AddType application/x-httpd-php .php + +# For PHP 5 do something like this: +LoadModule php5_module "c:/php/php5apache2.dll" +AddType application/x-httpd-php .php + +# configure the path to php.ini +PHPIniDir "C:/php" +]]> + </programlisting> + </example> + </para> + <note> + <simpara> + 위 예제에서 <filename>c:/php/</filename>을 실제 PHP 경로로 + 변경하십시오. LoadModule 지시어에 + <filename>php4apache2.dll</filename>이나 + <filename>php5apache2.dll</filename>을 사용하는 점에 주의하십시오. + <filename>php4apache.dll</filename>이나 + <filename>php5apache.dll</filename>이 <emphasis>아닙니다</emphasis>. + 이들은 <link linkend="install.windows.apache1">아파치 1.3.x</link>에 + 사용하도록 설계되었습니다. + </simpara> + </note> + <note> + <para> + 내용 협상을 사용하려면, <link + linkend="faq.installation.apache.multiviews">관련 FAQ</link>를 + 읽어보십시오. + </para> + </note> + <warning> + <simpara> + DLL 파일을 <emphasis>다른 PHP 버전</emphasis>과 섞지 마십시오. DLL + 사용과 확장을 모두 내려받은 PHP 버전에서 사용해야 합니다. + </simpara> + </warning> + </sect2> + </sect1> + +<!-- 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 +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/bc/functions/bcpow.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/bc/functions/bcpow.xml diff -u phpdoc-kr/reference/bc/functions/bcpow.xml:1.5 phpdoc-kr/reference/bc/functions/bcpow.xml:1.6 --- phpdoc-kr/reference/bc/functions/bcpow.xml:1.5 Sun Nov 9 18:31:46 2008 +++ phpdoc-kr/reference/bc/functions/bcpow.xml Fri Nov 21 15:18:20 2008 @@ -1,31 +1,84 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>bcpow</refname> - <refpurpose> - 임의 정밀도 수를 제곱한다 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>bcpow</methodname> - <methodparam><type>string</type><parameter>x</parameter></methodparam> - <methodparam><type>int</type><parameter>y</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>x</parameter>를 <parameter>y</parameter> 제곱한다 - 선택적인 <parameter>scale</parameter> 인수는 소수점 이하 자릿수를 - 결정하는데 사용한다. - </para> - <para> - <function>bcpowmod</function>, - <function>bcsqrt</function> 참고. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: unknown --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.bcpow" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>bcpow</refname> + <refpurpose>임의 정밀도 수를 거듭제곱</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>bcpow</methodname> + <methodparam><type>string</type><parameter>left_operand</parameter></methodparam> + <methodparam><type>string</type><parameter>right_operand</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>left_operand</parameter>를 + <parameter>right_operand</parameter>제곱합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>left_operand</parameter></term> + <listitem> + <para> + 왼쪽 연산수, 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>right_operand</parameter></term> + <listitem> + <para> + 오른쪽 연산수, 문자열. + </para> + </listitem> + </varlistentry> + &bc.scale.description; + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 결과를 문자열로 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title><function>bcpow</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php + +echo bcpow('4.2', '3', 2); // 74.08 + +?> +]]> + </programlisting> + </example> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>bcpowmod</function></member> + <member><function>bcsqrt</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/bc/functions/bcscale.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/bc/functions/bcscale.xml diff -u phpdoc-kr/reference/bc/functions/bcscale.xml:1.5 phpdoc-kr/reference/bc/functions/bcscale.xml:1.6 --- phpdoc-kr/reference/bc/functions/bcscale.xml:1.5 Sun Nov 9 18:31:46 2008 +++ phpdoc-kr/reference/bc/functions/bcscale.xml Fri Nov 21 15:18:20 2008 @@ -1,24 +1,70 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.bcscale" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>bcscale</refname> - <refpurpose> - 모든 bc 수치계산 함수의 scale 인수의 기본값을 설정한다 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>bcscale</methodname> - <methodparam><type>int</type><parameter>scale</parameter></methodparam> - </methodsynopsis> - <para> - 이 함수는 scale 인수를 명시하지 않은 모든 bc 수치계산 함수의 - 의 scale 인수의 기본값을 설정한다. - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.10 Maintainer: progcom Status: unknown --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.bcscale" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>bcscale</refname> + <refpurpose>모든 bc 수학 함수의 기본 scale 인수값을 설정</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>bcscale</methodname> + <methodparam><type>int</type><parameter>scale</parameter></methodparam> + </methodsynopsis> + <para> + scale 인수를 명시하지 않는 모든 bc 수학 함수의 기본 scale 인수값을 + 설정합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>scale</parameter></term> + <listitem> + <para> + 소수점 아래 자리수 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>bcscale</function> 예제</title> + <programlisting role="php"> +<![CDATA[ +<?php + +// 기본 자리수 : 3 +bcscale(3); +echo bcdiv('105', '6.55957'); // 16.007 + +// bcscale() 없이 동일한 결과 +echo bcdiv('105', '6.55957', 3); // 16.007 + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/bzip2/functions/bzcompress.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/bzip2/functions/bzcompress.xml diff -u phpdoc-kr/reference/bzip2/functions/bzcompress.xml:1.5 phpdoc-kr/reference/bzip2/functions/bzcompress.xml:1.6 --- phpdoc-kr/reference/bzip2/functions/bzcompress.xml:1.5 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/bzip2/functions/bzcompress.xml Fri Nov 21 15:18:20 2008 @@ -1,54 +1,94 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.bzcompress" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>bzcompress</refname> - <refpurpose>문자열을 bzip2 인코딩 데이터로 압축한다</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>bzcompress</methodname> - <methodparam><type>string</type><parameter>source</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>blocksize</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>workfactor</parameter></methodparam> - </methodsynopsis> - <para> - <function>bzcompress</function>는 <parameter>source</parameter> 문자열을 - 압축하고 bzip2 인코딩 데이터로 반환한다 - </para> - <para> - 선택적인 인수 <parameter>blocksize</parameter> 는 압축중에 사용할 - blocksize를 설정하고 1에서 9까지의 숫자가 되어야 하고 여기서 9는 - 가장 압축률이 높지만 자원을 더 많이 사용하게 된다. - <parameter>blocksize</parameter>의 기본값은 4이다. - </para> - <para> - 선택적인 인수 <parameter>workfactor</parameter> 는 - 반복이 많은 입력 데이터와 같은 최악의 경우에 압축이 어떻게 동작할지에 - 대해 제어한다. 이 값은 0부터 250이 될수 있고 0은 특수한 상황에서 - 쓰이고, 30은 기본값이 된다. 이 <parameter>workfactor</parameter>에 - 관계없이, 동일한 출력값이 나온다. - </para> - <para> - <example> - <title><function>bzcompress</function> 예제코드</title> - <programlisting role="php"> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: unknown --> +<!-- CREDITS: fuzzy74 --> +<refentry xml:id="function.bzcompress" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>bzcompress</refname> + <refpurpose>문자열을 bzip2 인코드 데이터로 압축</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>bzcompress</methodname> + <methodparam><type>string</type><parameter>source</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>blocksize</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>workfactor</parameter></methodparam> + </methodsynopsis> + <para> + <function>bzcompress</function>는 주어진 문자열을 + 압축하고 bzip2 인코딩 데이터로 반환한다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>source</parameter></term> + <listitem> + <para> + 압축할 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>blocksize</parameter></term> + <listitem> + <para> + 압축중에 사용할 + blocksize를 설정하고 1에서 9까지의 숫자가 되어야 합니다. 여기서 9는 + 가장 압축률이 높지만 자원을 더 많이 사용하게 된다. + <parameter>blocksize</parameter>의 기본값은 4이다. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>workfactor</parameter></term> + <listitem> + <para> + 반복이 많은 입력 데이터와 같은 최악의 경우에 압축이 어떻게 동작할지에 + 대해 제어한다. 이 값은 0부터 250이 될수 있고, 0은 특수한 상황에서 + 쓰이며 기본값은 30입니다. + </para> + <para> + <parameter>workfactor</parameter>에 + 관계없이, 성생된 출력은 동일합니다. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 압축된 문자열이나, 오류 발생 시 오류 번호. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title>데이터 압축하기</title> + <programlisting role="php"> <![CDATA[ <?php $str = "sample data"; $bzstr = bzcompress($str, 9); -print( $bzstr ); +echo $bzstr; ?> ]]> - </programlisting> - </example> - </para> - <para> - <function>bzdecompress</function> 참고. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>bzdecompress</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/bzip2/functions/bzdecompress.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc-kr/reference/bzip2/functions/bzdecompress.xml:1.5 phpdoc-kr/reference/bzip2/functions/bzdecompress.xml:1.6 --- phpdoc-kr/reference/bzip2/functions/bzdecompress.xml:1.5 Sun Nov 9 18:31:47 2008 +++ phpdoc-kr/reference/bzip2/functions/bzdecompress.xml Fri Nov 21 15:18:20 2008 @@ -1,53 +1,91 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: fuzzy74 Status: unknown --> - <refentry xml:id="function.bzdecompress" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>bzdecompress</refname> - <refpurpose>bzip2 인코딩 데이터의 압축을 해제한다</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>bzdecompress</methodname> - <methodparam><type>string</type><parameter>source</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>small</parameter></methodparam> - </methodsynopsis> - <para> - <function>bzdecompress</function>는 - bzip2 인코딩 데이터를 포함하는 <parameter>source</parameter> 문자열의 - 압축을 해제하고 반환한다. 선택적인 인수 <parameter>small</parameter> - 이 &true;이면, 메모리를 더 적게 사용하는 대체 압축 해제 알고리즘이 - 사용될것이다 (최대 메모리 요구량은 2300K 이하이다). - 그러나 속도는 반으로 줄게 된다.이 기능에 대해 더많은 정보를 - 얻으려면 <link xlink:href="&url.bzip2;">bzip2 문서</link>를 참고한다. - </para> - <para> - <example> - <title><function>bzdecompress</function></title> - <programlisting role="php"> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: ready --> +<refentry xml:id="function.bzdecompress" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>bzdecompress</refname> + <refpurpose>bzip2 인코드 데이터의 압축 해제</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>mixed</type><methodname>bzdecompress</methodname> + <methodparam><type>string</type><parameter>source</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>small</parameter></methodparam> + </methodsynopsis> + <para> + <function>bzdecompress</function>는 주어진 문자열이 포함하는 bzip2 인코드 + 데이터의 압축을 풉니다. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>source</parameter></term> + <listitem> + <para> + 압출을 풀 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>small</parameter></term> + <listitem> + <para> + &true;면 메모리를 적게 쓰는 압축 해제 알고리즘을 사용합니다. (최대 + 메모리 요구 사항이 2300K 정도까지 내려갑니다) 그러나 작업 속도는 거의 + 절반입니다. + </para> + <para> + 이 기능에 대한 자세한 정보는 <link xlink:href="&url.bzip2;">bzip2 + 문서</link>를 참고하십시오. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 압축 해제한 문자열이나 오류 발생시 오류 번호. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>문자열 압축 풀기</title> + <programlisting role="php"> <![CDATA[ <?php $start_str = "This is not an honest face?"; $bzstr = bzcompress($start_str); -print( "압축 문자열: " ); -print( $bzstr ); -print( "\n<br>\n" ); +echo "Compressed String: "; +echo $bzstr; +echo "\n<br />\n"; $str = bzdecompress($bzstr); -print( "압축 해제된 문자열: " ); -print( $str ); -print( "\n<br>\n" ); +echo "Decompressed String: "; +echo $str; +echo "\n<br />\n"; ?> ]]> - </programlisting> - </example> - </para> - <para> - <function>bzcompress</function> 참고. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>bzcompress</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/dir/functions/chdir.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/dir/functions/chdir.xml diff -u phpdoc-kr/reference/dir/functions/chdir.xml:1.4 phpdoc-kr/reference/dir/functions/chdir.xml:1.5 --- phpdoc-kr/reference/dir/functions/chdir.xml:1.4 Sat Jun 23 13:51:38 2007 +++ phpdoc-kr/reference/dir/functions/chdir.xml Fri Nov 21 15:18:20 2008 @@ -1,55 +1,90 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> - <refentry xml:id="function.chdir" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>chdir</refname> - <refpurpose>디렉토리를 변경합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>chdir</methodname> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> - <para> - PHP의 현재 디렉토리를 <parameter>directory</parameter>로 변경합니다. - &return.success; - </para> - <para> - <example> - <title><function>chdir</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.14 Maintainer: progcom Status: ready --> +<refentry xml:id="function.chdir" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>chdir</refname> + <refpurpose>디렉토리 변경</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>chdir</methodname> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> + <para> + PHP의 현재 디렉토리를 <parameter>directory</parameter>로 변경합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>directory</parameter></term> + <listitem> + <para> + 새 현재 디렉토리 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>chdir</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php - + // 현재 디렉토리 echo getcwd() . "\n"; - + chdir('public_html'); - + // 현재 디렉토리 echo getcwd() . "\n"; - + ?> ]]> - </programlisting> - <para> - 출력 예는: - </para> - <screen> + </programlisting> + &example.outputs.similar; + <screen> <![CDATA[ /home/vincent /home/vincent/public_html ]]> - </screen> - </example> - </para> - &note.sm.uidcheck.dir; - <para> - 참고: <function>getcwd</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + &note.sm.uidcheck.dir; + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>getcwd</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/dir/functions/chroot.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/reference/dir/functions/chroot.xml diff -u phpdoc-kr/reference/dir/functions/chroot.xml:1.2 phpdoc-kr/reference/dir/functions/chroot.xml:1.3 --- phpdoc-kr/reference/dir/functions/chroot.xml:1.2 Sat Jun 23 13:51:38 2007 +++ phpdoc-kr/reference/dir/functions/chroot.xml Fri Nov 21 15:18:20 2008 @@ -1,28 +1,55 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> - <refentry xml:id="function.chroot" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>chroot</refname> - <refpurpose>루트 디렉토리를 변경합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>bool</type><methodname>chroot</methodname> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - </methodsynopsis> - <para> - 현재 프로세스의 루트 디렉토리를 <parameter>directory</parameter>로 - 변경합니다. &return.success; - </para> - <para> - 이 함수는 시스템이 지원하고, CLI, CGI, Embed SAPI를 사용할 때만 사용할 수 - 있습니다. - </para> - <note><simpara><function>chroot</function>는 루트 권한이 필요합니다.</simpara></note> - &note.no-windows; - </refsect1> - </refentry> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: ready --> +<refentry xml:id="function.chroot" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>chroot</refname> + <refpurpose>루트 디렉토리 변경</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>chroot</methodname> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + </methodsynopsis> + <para> + 현재 프로세스의 루트 디렉토리를 <parameter>directory</parameter>로 + 변경합니다. + </para> + <para> + 이 함수는 시스템이 지원하고, CLI, CGI, Embed SAPI를 사용할 때만 사용할 수 + 있습니다. 또한, 이 함수는 루트 권한이 필요합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>directory</parameter></term> + <listitem> + <para> + 새 디렉토리 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + &note.no-windows; + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/dir/functions/getcwd.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-kr/reference/dir/functions/getcwd.xml diff -u phpdoc-kr/reference/dir/functions/getcwd.xml:1.6 phpdoc-kr/reference/dir/functions/getcwd.xml:1.7 --- phpdoc-kr/reference/dir/functions/getcwd.xml:1.6 Mon Nov 10 07:09:23 2008 +++ phpdoc-kr/reference/dir/functions/getcwd.xml Fri Nov 21 15:18:20 2008 @@ -1,23 +1,41 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> - <refentry xml:id="function.getcwd" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>getcwd</refname> - <refpurpose>현재 작업 디렉토리를 구합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>getcwd</methodname> - <void/> - </methodsynopsis> - <para> - 현재 작업 디렉토리를 반환합니다. - </para> - <para> - <example> - <title><function>getcwd</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.12 Maintainer: progcom Status: ready --> +<refentry xml:id="function.getcwd" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>getcwd</refname> + <refpurpose>현재 작업 디렉토리를 얻음</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>getcwd</methodname> + <void/> + </methodsynopsis> + <para> + 현재 작업 디렉토리를 얻습니다. + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 성공시엔 현재 작업 디렉토리, 실패시엔 &false;를 반환합니다. + </para> + <para> + 몇몇 유닉스 종류에서, <function>getcwd</function>는 부모 디렉토리 중 하나가 + 읽을 수 없거나 검색 모드 설정이 없는 경우, 현재 디렉토리를 읽을 수 있더라도 + &false;를 반환합니다. 모드와 권한에 대한 자세한 정보는 + <function>chmod</function>를 참고하십시오. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>getcwd</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php @@ -31,23 +49,28 @@ ?> ]]> - </programlisting> - <para> - 다음과 비슷한 출력을 합니다: - </para> - <screen> + </programlisting> + &example.outputs.similar; + <screen> <![CDATA[ /home/didou /home/didou/cvs ]]> - </screen> - </example> - </para> - <para> - 참고: <function>chdir</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>chdir</function></member> + <member><function>chmod</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/dir/functions/scandir.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/dir/functions/scandir.xml diff -u phpdoc-kr/reference/dir/functions/scandir.xml:1.5 phpdoc-kr/reference/dir/functions/scandir.xml:1.6 --- phpdoc-kr/reference/dir/functions/scandir.xml:1.5 Wed Nov 12 22:05:48 2008 +++ phpdoc-kr/reference/dir/functions/scandir.xml Fri Nov 21 15:18:20 2008 @@ -1,35 +1,76 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> - <refentry xml:id="function.scandir" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>scandir</refname> - <refpurpose> - 지정 경로 안의 파일과 디렉토리 목록 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>array</type><methodname>scandir</methodname> - <methodparam><type>string</type><parameter>directory</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>sorting_order</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>directory</parameter>에서 파일과 디렉토리의 - <type>array</type>를 반환합니다. <parameter>directory</parameter>가 - 디렉토리가 아닐 경우, 논리 &false;를 반환하고, 에러 레벨 - <constant>E_WARNING</constant>를 생생합니다. - </para> - <para> - 기본값으로, 정렬 순서는 알파벳 오름 차순입니다. 선택적인 - <parameter>sorting_order</parameter>를 사용하면(1로 설정), 정렬 순서는 - 알파벳 내림 차순입니다. - </para> - <para> - <example> - <title>간단한 <function>scandir</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.10 Maintainer: progcom Status: ready --> +<refentry xml:id="function.scandir" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>scandir</refname> + <refpurpose>지정한 경로 안의 파일과 디렉토리 목록</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>scandir</methodname> + <methodparam><type>string</type><parameter>directory</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>sorting_order</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>directory</parameter>에서 파일과 디렉토리 <type>array</type>를 + 반환합니다. + </para> + + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>directory</parameter></term> + <listitem> + <para> + 탐색할 디렉토리. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>sorting_order</parameter></term> + <listitem> + <para> + 기본값으로, 정렬 순서는 알파벳 올림차순입니다. 선택적인 + <parameter>sorting_order</parameter>를 사용하면(1로 설정), 정렬 순서가 + 알파벳 내림차순이 됩니다. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>context</parameter></term> + <listitem> + <para> + <parameter>context</parameter> 인수에 대한 설명은 매뉴얼 <link + linkend="ref.stream">스트림 섹션</link>을 참고하십시오. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 성공시엔 파일명의 <type>array</type>, 실패시엔 &false;를 반환합니다. + <parameter>directory</parameter>가 디렉토리가 아닐 경우, 논리 &false;를 + 반환하고 <constant>E_WARNING</constant> 등급 오류가 발생합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>간단한 <function>scandir</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $dir = '/tmp'; @@ -40,11 +81,9 @@ print_r($files2); ?> ]]> - </programlisting> - <para> - 출력 예는: - </para> - <screen> + </programlisting> + &example.outputs.similar; + <screen> <![CDATA[ Array ( @@ -63,13 +102,13 @@ [4] => . ) ]]> - </screen> - </example> - </para> - <para> - <example> - <title><function>scandir</function>과 동일한 PHP 4 방법</title> - <programlisting role="php"> + </screen> + </example> + </para> + <para> + <example> + <title><function>scandir</function>의 PHP 4 대체</title> + <programlisting role="php"> <![CDATA[ <?php $dir = "/tmp"; @@ -88,11 +127,9 @@ ?> ]]> - </programlisting> - <para> - 출력 예는: - </para> - <screen> + </programlisting> + &example.outputs.similar; + <screen> <![CDATA[ Array ( @@ -111,19 +148,29 @@ [4] => . ) ]]> - </screen> - </example> - </para> - &tip.fopen-wrapper; - <para> - 참고: <function>opendir</function>, - <function>readdir</function>, - <function>glob</function>, - <function>is_dir</function>, - <function>sort</function>. - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + &tip.fopen-wrapper; + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>opendir</function></member> + <member><function>readdir</function></member> + <member><function>glob</function></member> + <member><function>is_dir</function></member> + <member><function>sort</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/install/unix/apache2.xml?view=markup&rev=1.1 Index: phpdoc-kr/install/unix/apache2.xml +++ phpdoc-kr/install/unix/apache2.xml <?xml version="1.0" encoding="utf-8"?> <!-- EN-Revision: 1.10 Maintainer: progcom Status: ready --> <sect1 xml:id="install.unix.apache2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>유닉스 시스템 아파치 2.0</title> <para> 이 섹션은 유닉스 시스템 아파치 2.0에 특화된 PHP 설치에 관한 정보와 힌트를 담고 있습니다. </para> &warn.apache2.compat; <para> 아파치 2.0 서버에 대한 이해를 위하여 <link xlink:href="&url.apache2.docs;">아파치 문서</link>를 살펴보길 권합니다. </para> &install.snippet.apache2.compat; <para> 최신 버전의 <link xlink:href="&url.apache;">아파치 2.0</link>과 위에서 언급한 위치에서 적합한 PHP 버전을 내려받습니다. 이 빠른 가이드는 아파치 2.0과 PHP를 시작하는 기본적인 내용만 다루고 있습니다. 자세한 정보는 <link xlink:href="&url.apache2.docs;">아파치 문서</link>를 읽으십시오. 지시가 틀리지 않기 위해서, 여기에서 버전 번호는 제거했습니다. 'NN'을 적합한 값으로 변경해야 합니다. </para> <example> <title> 설치 안내 (아파치 2 공유 모듈 버전) </title> <screen> <![CDATA[ 1. gzip -d httpd-2_0_NN.tar.gz 2. tar xvf httpd-2_0_NN.tar 3. gunzip php-NN.tar.gz 4. tar -xvf php-NN.tar 5. cd httpd-2_0_NN 6. ./configure --enable-so 7. make 8. make install 이제 /usr/local/apache2 아래 모듈 적재 지원과 표준 MPM prefork로 설정한 아파치 2.0.NN이 존재합니다. 설치를 테스트하려면 일반적인 아파치 서버 시작 절차를 사용합니다. 즉: /usr/local/apache2/bin/apachectl start 그리고 PHP 설정을 위하여 서버를 중단합니다: /usr/local/apache2/bin/apachectl stop. 9. cd ../php-NN 10. 이제, PHP를 설정합니다. 여기에서 확장을 활성화 하는 등, PHP를 다양한 다양한 옵션으로 커스터마이즈합니다. ./configure --help 를 실행하여 가능한 옵션 목록을 확인할 수 있습니다. 예제에서는 아파치 2와 MySQL 지원으로 간단히 설정합니다. 실제 apxs 경로는 다를 수 있습니다. 시스템에 따라서 apxs2로 존재하는 경우도 있습니다. ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql 11. make 12. make install 설치 후에 설정 옵션을 바꾸려면, 마지막 세 단계만 반복하면 됩니다. 그리고 새 모듈이 효과를 발휘하도록 아파치를 재시작하면 됩니다. 아파치를 다시 컴파일할 필요는 없습니다. 특별히 언급이 없는 한, 'make install'은 PEAR, phpize 같은 다양한 PHP 도구, PHP CLI 등을 함께 설치합니다. 13. php.ini 설치 cp php.ini-dist /usr/local/lib/php.ini PHP 옵션을 설정하기 위하여 .ini 파일을 수정할 수 있습니다. php.ini를 다른 위치에 놓으려면, 10번째 단계에서 --with-config-file-paht=/some/path 를 사용합니다. php.ini-recommended를 선택한다면, 안에서 변경 목록을 읽어서, 어떤 PHP 행동에 영향을 주는지 확인하십시오. 14. httpd.conf를 수정하여 PHP 모듈을 적재합니다. LoadModule 구문 우측에서는 시스템의 PHP 모듈 경로를 가르켜야 합니다. 위에서 make install이 이미 이를 추가했을 수도 있지만, 꼭 확인해보십시오. For PHP 4: LoadModule php4_module modules/libphp4.so For PHP 5: LoadModule php5_module modules/libphp5.so 15. 어떠한 확장자를 PHP로 해석할지 아파치에 알려줍니다. 예를 들어, 아파치가 .php 파일을 PHP로 해석하게 합시다. 단순히 아파치 AddType 지시어를 사용하는 대신, exploit.php.jpg 등의 파일이 업로드되어 PHP로 실행되는 것을 막습니다. 이 예제를 사용하여, PHP로 해석할 어떠한 확장자라도 단순히 추가할 수 있습니다. 예시를 위해 .phtml을 추가하겠습니다. <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> 또는, .php, .php2, .php3, .php4, .php6, .phtml 파일을 PHP로 실행하게 할 수 있습니다. 이렇게 하면 됩니다: <FilesMatch "\.ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> .phps 파일을 PHP 소스 파일로 실행하려면, 다음을 추가합니다: <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> 16. 아파치 서버를 시작하는 정상 절차를 사용합니다, 즉: /usr/local/apache2/bin/apachectl start - 또는 - service httpd restart ]]> </screen> </example> <para> 위 단계를 따라하면 아파치2 웹 서버를 PHP <literal>SAPI</literal> 모듈로 실행하게 됩니다. 물론, 아파치와 PHP에는 많은 설정 옵션이 존재합니다. 자세한 정보는 해당 소스 트리에서 <command>./configuration --help</command>를 쳐 보십시오. 멀티쓰레드 버전의 아파치2를 빌드하려면, 표준 MPM 모듈 <filename>prefork</filename>를 <filename>worker</filename>나 <filename>perchild</filename>로 덮어써야 합니다. 이를 위해서는 위의 6번째 단계에서 <option role="configure">--with-mpm=worker</option>나 <option role="configure">--with-mpm=perchild</option> 옵션을 추가해야 합니다. 이를 하기 전에, 최소한 이 일이 어떻게 작동하는지와 장단점을 파악하십시오. 자세한 정보는 <link xlink:href="&url.apache2.mpm;">MPM 모듈</link>에 관한 아파치 문서를 읽어보십시오. </para> <note> <para> 내용 협상을 사용하려면, <link linkend="faq.installation.apache.multiviews">아파치 MultiViews FAQ</link>를 읽어보십시오. </para> </note> <note> <para> 아파치 멀티쓰레드 버전을 빌드하려면, 시스템이 쓰레드를 지원해야 합니다. 이 경우 PHP를 실험적인 Zend Thread Safety (ZTS)로 빌드하게 합니다. 그러므로 모든 확장을 사용할 수 없습니다. 권장하는 설치는 아파치를 표준 <filename>prefork</filename> MPM 모듈로 빌드하는 것입니다. </para> </note> </sect1> <!-- 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 indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.kr (#783) next »