vizvil Sat Feb 3 09:39:45 2001 EDT
Modified files:
/phpdoc/kr/functions network.xml nis.xml
Log:
english document translated to korean by Gwangjong Lee(ROK)
Index: phpdoc/kr/functions/network.xml
diff -u phpdoc/kr/functions/network.xml:1.2 phpdoc/kr/functions/network.xml:1.3
--- phpdoc/kr/functions/network.xml:1.2 Fri Jan 12 06:16:40 2001
+++ phpdoc/kr/functions/network.xml Sat Feb 3 09:39:45 2001
@@ -1,214 +1,211 @@
- <reference id="ref.network">
- <title>Network Functions</title>
- <titleabbrev>Network</titleabbrev>
-
- <refentry id="function.checkdnsrr">
- <refnamediv>
- <refname>checkdnsrr</refname>
- <refpurpose>
- Check DNS records corresponding to a given Internet host name or
- IP address
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>checkdnsrr</function></funcdef>
- <paramdef>string <parameter>host</parameter></paramdef>
- <paramdef>string
- <parameter><optional>type</optional></parameter>
- </paramdef>
- </funcprototype>
- </funcsynopsis>
- <simpara>
- Searches DNS for records of type <parameter>type</parameter>
- corresponding to <parameter>host</parameter>. Returns true if any
- records are found; returns false if no records were found or if
- an error occurred.
- </simpara>
- <simpara>
- <parameter>type</parameter> may be any one of: A, MX, NS, SOA,
- PTR, CNAME, or ANY. The default is MX.
+<reference id="ref.network">
+ <title>Network Functions</title>
+ <titleabbrev>Network</titleabbrev>
+ <refentry id="function.checkdnsrr">
+ <refnamediv>
+ <refname>checkdnsrr</refname>
+ <refpurpose>
+ 인터넷 호스트 네임이나 IP 어드레스에 대응되는 DNS
+레코드를 체크함
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>checkdnsrr</function>
+ </funcdef>
+ <paramdef>string <parameter>host</parameter>
+ </paramdef>
+ <paramdef>string
+ <parameter>
+ <optional>type</optional>
+ </parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <simpara>
+ <parameter>host</parameter>에 대응이 되는
+<parameter>type</parameter>의 레코드를 DNS에서 찾습니다.
+ 어떠한 레코드라도 발견이 되면 true를 반환합니다. 그리고
+레코드가 발견되지 않거나 에러가 발생하면 false를 반환합니다.
+ </simpara>
+ <simpara>
+ <parameter>type</parameter>은 A, MX, NS, SOA, PTR,
+CNAME 중에 있거나 다른 것이 올수도 있습니다.
+ 디폴트 값은 MX 입니다.
</simpara>
- <simpara>
- <parameter>Host</parameter> may either be the IP address in
- dotted-quad notation or the host name.
+ <simpara>
+ <parameter>Host</parameter>는 IP
+어드레스이거나 호스트 네임이 될 수 있습니다.
</simpara>
- <simpara>
- See also <function>getmxrr</function>,
+ <simpara>
+ 참조: <function>getmxrr</function>,
<function>gethostbyaddr</function>,
<function>gethostbyname</function>,
- <function>gethostbynamel</function>, and the named(8) manual
- page.
+ <function>gethostbynamel</function>, 그리고 named(8) 지침서.
</simpara>
- </refsect1>
- </refentry>
-
- <refentry id="function.closelog">
- <refnamediv>
- <refname>closelog</refname>
- <refpurpose>Close connection to system logger</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>closelog</function></funcdef>
- <void/>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Closelog</function> closes the descriptor being used to
- write to the system logger. The use of
- <function>closelog</function> is optional.
- </para>
- <para>
- See also <function>define_syslog_variables</function>,
- <function>syslog</function> and
+ </refsect1>
+ </refentry>
+ <refentry id="function.closelog">
+ <refnamediv>
+ <refname>closelog</refname>
+ <refpurpose>시스템 로그에 기록을 못하도록
+연결을 닫습니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>closelog</function>
+ </funcdef>
+ <void/>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Closelog</function>는 정보서술자가
+시스템 로그에 기록해 오던 것을 닫습니다.
+ <function>closelog</function>를 사용하는 것은 선택사항입니다.
+ </para>
+ <para>
+ 참조: <function>define_syslog_variables</function>,
+ <function>syslog</function>그리고
<function>openlog</function>.
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.debugger-off">
- <refnamediv>
- <refname>debugger_off</refname>
- <refpurpose>Disable internal PHP debugger</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>debugger_off</function></funcdef>
- <void/>
- </funcprototype>
- </funcsynopsis>
- <para>
- Disables the internal PHP debugger. The debugger is still under
- development.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.debugger-on">
- <refnamediv>
- <refname>debugger_on</refname>
- <refpurpose>Enable internal PHP debugger</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>debugger_on</function></funcdef>
- <paramdef>string <parameter>address</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Enables the internal PHP debugger, connecting it to
- <parameter>address</parameter>. The debugger is still under
- development.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.define-syslog-variables">
- <refnamediv>
- <refname>define_syslog_variables</refname>
- <refpurpose>Initializes all syslog related constants</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>void <function>define_syslog_varaibles</function></funcdef>
- <paramdef>void</paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Initializes all constants used in the syslog functions.
- </para>
- <para>
- See also <function>openlog</function>,
- <function>syslog</function> and
+ </refsect1>
+ </refentry>
+ <refentry id="function.debugger-off">
+ <refnamediv>
+ <refname>debugger_off</refname>
+ <refpurpose>PHP 내부 디버거 사용을
+멈춥니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>debugger_off</function>
+ </funcdef>
+ <void/>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ PHP 내부 디버거 사용을 멈춥니다. 디버거는 계속해서
+향상중입니다.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.debugger-on">
+ <refnamediv>
+ <refname>debugger_on</refname>
+ <refpurpose>PHP 내부 디버거를
+사용합니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>debugger_on</function>
+ </funcdef>
+ <paramdef>string <parameter>address</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <parameter>address</parameter>로 연결해서 PHP
+내부 디버거를 사용합니다. 디버거는 계속해서 향상중입니다.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.define-syslog-variables">
+ <refnamediv>
+ <refname>define_syslog_variables</refname>
+ <refpurpose>syslog에 연관된 모든 상수를
+초기화합니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>void
+<function>define_syslog_varaibles</function>
+ </funcdef>
+ <paramdef>void</paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ syslog 함수에 사용되던 모든 상수들을 초기화합니다.
+ </para>
+ <para>
+ 참조: <function>openlog</function>,
+ <function>syslog</function> 그리고
<function>closelog</function>.
</para>
- </refsect1>
- </refentry>
-
-
- <refentry id="function.fsockopen">
- <refnamediv>
- <refname>fsockopen</refname>
- <refpurpose>
- Open Internet or Unix domain socket connection
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>fsockopen</function></funcdef>
- <paramdef>
- string <parameter><optional>udp://</optional>hostname</parameter>
- </paramdef>
- <paramdef>int <parameter>port</parameter></paramdef>
- <paramdef>int
- <parameter><optional>errno</optional></parameter>
- </paramdef>
- <paramdef>string
- <parameter><optional>errstr</optional></parameter>
- </paramdef>
- <paramdef>double
- <parameter><optional>timeout</optional></parameter>
- </paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Initiates a stream connection in the Internet (AF_INET, using TCP
- or UDP) or Unix (AF_UNIX) domain. For the Internet domain, it
- will open a TCP socket connection to
- <parameter>hostname</parameter> on port
- <parameter>port</parameter>. <parameter>hostname</parameter> may
- in this case be either a fully qualified domain name or an IP
- address. For UDP connections, you need to explicitly specify the
- protocol: <parameter>udp://hostname</parameter>. For the Unix
- domain, <parameter>hostname</parameter> will be used as the path
- to the socket, <parameter>port</parameter> must be set to 0 in
- this case. The optional <parameter>timeout</parameter> can be
- used to set a timeout in seconds for the connect system call.
- </para>
- <para>
- <function>Fsockopen</function> returns a file pointer which may
- be used together with the other file functions (such as
+ </refsect1>
+ </refentry>
+ <refentry id="function.fsockopen">
+ <refnamediv>
+ <refname>fsockopen</refname>
+ <refpurpose>
+ 인터넷이나 유닉스 도메인의 소켓 연결을 열어줍니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>fsockopen</function>
+ </funcdef>
+ <paramdef>
+ string <parameter>
+
+<optional>udp://</optional>hostname</parameter>
+ </paramdef>
+ <paramdef>int <parameter>port</parameter>
+ </paramdef>
+ <paramdef>int
+ <parameter>
+ <optional>errno</optional>
+ </parameter>
+ </paramdef>
+ <paramdef>string
+ <parameter>
+ <optional>errstr</optional>
+ </parameter>
+ </paramdef>
+ <paramdef>double
+ <parameter>
+ <optional>timeout</optional>
+ </parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ 인터넷 (TCP 또는 UDP를 사용하는AF_INET) 또는
+유닉스(AF_UNIX)도메인에서
+ 스트림 연결을 시작합니다.
+ 이것은 인터넷 도메인이라는 것 때문에 TCP 소켓을
+<parameter>port</parameter>상에서
+ <parameter>hostname</parameter>에 연결하는 것을 열어줍니다.
+ <parameter>hostname</parameter>은 이와 같은 경우에 완전히 증명이
+된 도메인 네임이거나
+ IP 어드레스일 수 있습니다.
+ UDP 연결에서는 프로토콜을 미리 정의해야 합니다 :
+<parameter>udp://hostname</parameter>.
+ 유닉스 도메인에서는 <parameter>hostname</parameter>이 소켓의
+경로로 사용될 수 있는데
+ 이 경우에 <parameter>port</parameter>는 0 으로 설정되어야
+합니다.
+ 선택사항인 <parameter>timeout</parameter>은 시스템 호출에
+연결되는 것에 대한
+ 시간초과가 몇 초안에 이루어지도록 설정할 수 있습니다.
+ </para>
+ <para>
+ <function>Fsockopen</function>은 다른 파일관련
+함수(다음과 같은
<function>fgets</function>, <function>fgetss</function>,
- <function>fputs</function>, <function>fclose</function>, and
- <function>feof</function>).
+ <function>fputs</function>, <function>fclose</function> 그리고
+<function>feof</function>)
+ 와 사용할 수 있는 파일 포인터를 반환합니다.
</para>
- <para>
- If the call fails, it will return false and if the optional
- <parameter>errno</parameter> and <parameter>errstr</parameter>
- arguments are present they will be set to indicate the actual
- system level error that occurred on the system-level
- <literal>connect()</literal> call. If the returned errno is 0 and
- the function returned false, it is an indication that the error
- occurred before the <literal>connect()</literal> call. This is
- most likely due to a problem initializing the socket. Note that
- the <parameter>errno</parameter> and
- <parameter>errstr</parameter> arguments must be passed by
- reference.
- </para>
- <para>
- Depending on the environment, the Unix domain or the optional
- connect timeout may not be available.
- </para>
- <para>
- The socket will by default be opened in blocking mode. You can
- switch it to non-blocking mode by using
- <function>socket_set_blocking</function>.
+ <para>
+ 호출에 실패하면 false를 반환하고 임의항목인
+<parameter>errno</parameter>와
+ <parameter>errstr</parameter>인수가 있다면 시스템 차원의
+<literal>connect()</literal>호출
+ 에서 발생한 실제의 시스템 차원의 에러를 측정하기 위해
+설정될 수 있습니다.
+ 반환되는 errno 가 0 이고 함수가 false를 반환했다면
+<literal>connect()</literal>호출
+ 이전에 에러가 발생했다는 것을 알 수 있습니다.
+ 이것은 소켓을 초기화하면서 발생한 문제일 가능성이
+높습니다.
+ 주의할 것은 <parameter>errno</parameter>와
+<parameter>errstr</parameter>인수는
+ 레러 passed by reference되어야 합니다.
+ </para>
+ <para>
+ 환경에 따라 유닉스 도메인이나 선택사항인 연결
+시간초과는 사용이 지원되지 않을 수도 있습니다.
+ </para>
+ <para>
+ 소켓은 기본적으로 블로킹 모드(blocking mode)로 열려집니다.
+ <function>socket_set_blocking</function>을 사용해서 블로킹모드
+해제상태(non-blocking mode)
+ 로 전환할 수 있습니다..
<example>
- <title><function>Fsockopen</function> Example</title>
- <programlisting role="php">
+ <title>
+ <function>Fsockopen</function>
+예문</title>
+ <programlisting role="php">
$fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
@@ -220,12 +217,11 @@
fclose ($fp);
}
</programlisting>
- </example>
- The example below shows how to retrieve the day and time
- from the UDP service "daytime" (port 13) in your own machine.
+ </example>
+ 다음의 예문은 가지고 있는 장비에서 UDP 서비스인 "daytime"
+(port 13)을 이용해서 어떻게 날짜와 시간을 가져오는지
+보여줍니다.
<example>
- <title>Using UDP connection</title>
- <programlisting role="php">
+ <title>UDP 연결을 사용합니다</title>
+ <programlisting role="php">
<?php
$fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr);
if (!$fp) {
@@ -237,616 +233,623 @@
}
?>
</programlisting>
- </example>
- <note>
- <para>The timeout parameter was introduced in PHP 3.0.9 and
- UDP support was added in PHP 4.
+ </example>
+ <note>
+ <para>시간초과 매개변수는 PHP 3.0.9
+에 소개가 되었고 UDP 지원은 PHP 4에 추가되었습니다.
</para>
- </note>
- See also: <function>pfsockopen</function>,
+ </note>
+ 참조: <function>pfsockopen</function>,
<function>socket_set_blocking</function>,
<function>socket_set_timeout</function>, <function>fgets</function>,
<function>fgetss</function>, <function>fputs</function>,
- <function>fclose</function>, and <function>feof</function>).
+ <function>fclose</function>, 그리고 <function>feof</function>).
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.gethostbyaddr">
- <refnamediv>
- <refname>gethostbyaddr</refname>
- <refpurpose>
- Get the Internet host name corresponding to a given IP address
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>gethostbyaddr</function></funcdef>
- <paramdef>string <parameter>ip_address</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.gethostbyaddr">
+ <refnamediv>
+ <refname>gethostbyaddr</refname>
+ <refpurpose>
+ 주어진 IP 어드레스에 대응이 되는 인터넷 호스트 이름을
+가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string
+<function>gethostbyaddr</function>
+ </funcdef>
+ <paramdef>string
+<parameter>ip_address</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
Returns the host name of the Internet host specified by
- <parameter>ip_address</parameter>. If an error occurs, returns
- <parameter>ip_address</parameter>.
+ <parameter>ip_address</parameter>에 정의된 인터넷 호스트의 호스트
+이름을 반환합니다.
+ 에러가 발생하면 <parameter>ip_address</parameter>를 반환합니다.
</para>
- <para>
- See also <function>gethostbyname</function>.
+ <para>
+ 참조: <function>gethostbyname</function>.
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.gethostbyname">
- <refnamediv>
- <refname>gethostbyname</refname>
- <refpurpose>
- Get the IP address corresponding to a given Internet host name
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>gethostbyname</function></funcdef>
- <paramdef>string <parameter>hostname</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Returns the IP address of the Internet host specified by
- <parameter>hostname</parameter>.
- </para>
- <para>
- See also <function>gethostbyaddr</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.gethostbynamel">
- <refnamediv>
- <refname>gethostbynamel</refname>
- <refpurpose>
- Get a list of IP addresses corresponding to a given Internet host
- name
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>array <function>gethostbynamel</function></funcdef>
- <paramdef>string <parameter>hostname</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Returns a list of IP addresses to which the Internet host
- specified by <parameter>hostname</parameter> resolves.
+ </refsect1>
+ </refentry>
+ <refentry id="function.gethostbyname">
+ <refnamediv>
+ <refname>gethostbyname</refname>
+ <refpurpose>
+ 주어진 인터넷 호스트 이름에 대응되는 IP 어드레스를
+가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string
+<function>gethostbyname</function>
+ </funcdef>
+ <paramdef>string
+<parameter>hostname</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <parameter>hostname</parameter>에 정의된 인터넷
+호스트의 IP 어드레스를 반환합니다.
+ </para>
+ <para>
+ 참조: <function>gethostbyaddr</function>.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.gethostbynamel">
+ <refnamediv>
+ <refname>gethostbynamel</refname>
+ <refpurpose>
+ 주어진 인터넷 호스트 이름에 대응이 되는 IP 어드레스의
+목록을 가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array
+<function>gethostbynamel</function>
+ </funcdef>
+ <paramdef>string
+<parameter>hostname</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <parameter>hostname</parameter>분석에 정의된
+인터넷 호스트의 IP 어드레스의 목록을 반환합니다.
</para>
- <para>
- See also <function>gethostbyname</function>,
+ <para>
+ 참조: <function>gethostbyname</function>,
<function>gethostbyaddr</function>,
<function>checkdnsrr</function>, <function>getmxrr</function>,
- and the <literal>named(8)</literal> manual page.
+ 그리고 <literal>named(8)</literal> 기능설명(manual) 페이지.
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.getmxrr">
- <refnamediv>
- <refname>getmxrr</refname>
- <refpurpose>
- Get MX records corresponding to a given Internet host name
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>getmxrr</function></funcdef>
- <paramdef>string <parameter>hostname</parameter></paramdef>
- <paramdef>array <parameter>mxhosts</parameter></paramdef>
- <paramdef>array
- <parameter><optional>weight</optional></parameter>
- </paramdef>
- </funcprototype>
- </funcsynopsis>
- <simpara>
+ </refsect1>
+ </refentry>
+ <refentry id="function.getmxrr">
+ <refnamediv>
+ <refname>getmxrr</refname>
+ <refpurpose>
+ 주어진 인터넷 호스트 이름에 대응이 되는 MX 레코드를
+가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>getmxrr</function>
+ </funcdef>
+ <paramdef>string
+<parameter>hostname</parameter>
+ </paramdef>
+ <paramdef>array <parameter>mxhosts</parameter>
+ </paramdef>
+ <paramdef>array
+ <parameter>
+ <optional>weight</optional>
+ </parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <simpara>
Searches DNS for MX records corresponding to
- <parameter>hostname</parameter>. Returns true if any records are
- found; returns false if no records were found or if an error
- occurred.
+ <parameter>hostname</parameter>에 대응이 되는 MX 레코드를 찾기위해
+DNS를 찾습니다.
+ 아무 레코드라도 발견이 되면 true를 반환합니다.
+ 레코드가 없거나 에러가 발생되면 false를 반환합니다.
</simpara>
- <simpara>
- A list of the MX records found is placed into the array
- <parameter>mxhosts</parameter>. If the
- <parameter>weight</parameter> array is given, it will be filled
- with the weight information gathered.
+ <simpara>
+ 찾아낸 MX 레코드의 목록은 <parameter>mxhosts</parameter> 배열에
+위치합니다.
+ <parameter>weight</parameter>배열이 주어지면 수집된 weight 정보로
+채워집니다.
</simpara>
- <simpara>
- See also <function>checkdnsrr</function>,
+ <simpara>
+ 참조: <function>checkdnsrr</function>,
<function>gethostbyname</function>,
<function>gethostbynamel</function>,
- <function>gethostbyaddr</function>, and the
- <literal>named(8)</literal> manual page.
+ <function>gethostbyaddr</function> 그리고
+ <literal>named(8)</literal> 기능설명(manual) 페이지
</simpara>
- </refsect1>
- </refentry>
-
- <refentry id="function.getprotobyname">
- <refnamediv>
- <refname>getprotobyname</refname>
- <refpurpose>
- Get protocol number associated with protocol name
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>getprotobyname</function></funcdef>
- <paramdef>string <parameter>name</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Getprotobyname</function> returns the protocol number
- associated with the protocol <parameter>name</parameter> as per
- /etc/protocols.
- </para>
- <para>
- See also: <function>getprotobynumber</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.getprotobynumber">
- <refnamediv>
- <refname>getprotobynumber</refname>
- <refpurpose>
- Get protocol name associated with protocol number
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>getprotobynumber</function></funcdef>
- <paramdef>int <parameter>number</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Getprotobynumber</function> returns the protocol name
- associated with protocol <parameter>number</parameter> as per
- /etc/protocols.
- </para>
- <para>
- See also: <function>getprotobyname</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.getservbyname">
- <refnamediv>
- <refname>getservbyname</refname>
- <refpurpose>
- Get port number associated with an Internet service and protocol
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>getservbyname</function></funcdef>
- <paramdef>string <parameter>service</parameter></paramdef>
- <paramdef>string <parameter>protocol</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Getservbyname</function> returns the Internet port
- which corresponds to <parameter>service</parameter> for the
- specified <parameter>protocol</parameter> as per
- <filename>/etc/services</filename>.
- <parameter>protocol</parameter> is either <literal>TCP</literal>
- or <literal>UDP</literal>.
- </para>
- <para>
- See also: <function>getservbyport</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.getservbyport">
- <refnamediv>
- <refname>getservbyport</refname>
- <refpurpose>
- Get Internet service which corresponds to port and protocol
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>getservbyport</function></funcdef>
- <paramdef>int <parameter>port</parameter></paramdef>
- <paramdef>string <parameter>protocol</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Getservbyport</function> returns the Internet service
- associated with <parameter>port</parameter> for the specified
- <parameter>protocol</parameter> as per /etc/services.
- <parameter>protocol</parameter> is either <literal>TCP</literal>
- or <literal>UDP</literal>.
- </para>
- <para>
- See also: <function>getservbyname</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.ip2long">
- <refnamediv>
- <refname>ip2long</refname>
- <refpurpose>
- Converts a string containing an (IPv4) Internet Protocol dotted address
- into a proper address.
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>ip2long</function></funcdef>
- <paramdef>string <parameter>ip_address</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- The function <function>ip2long</function> generates an IPv4 Internet
- network address from its Internet standard format (dotted string)
- representation.
+ </refsect1>
+ </refentry>
+ <refentry id="function.getprotobyname">
+ <refnamediv>
+ <refname>getprotobyname</refname>
+ <refpurpose>
+ 프로토콜과 조합된 프로토콜 번호를 가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int
+<function>getprotobyname</function>
+ </funcdef>
+ <paramdef>string <parameter>name</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Getprotobyname</function>은 /etc/protocols
+각 프로토콜 <parameter>name</parameter>
+ 과 조합이 된 프로토콜의 번호를
+반환합니다.
+ </para>
+ <para>
+ 참조: <function>getprotobynumber</function>.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.getprotobynumber">
+ <refnamediv>
+ <refname>getprotobynumber</refname>
+ <refpurpose>
+ 프로토콜 번호와 조합된 프로토콜의 이름을 가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string
+<function>getprotobynumber</function>
+ </funcdef>
+ <paramdef>int <parameter>number</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Getprotobynumber</function> 은
+/etc/protocols 각 프로토콜 <parameter>number</parameter>
+ 와 조합이 된 프로토콜의 이름을
+반환합니다.
+ </para>
+ <para>
+ 참조: <function>getprotobyname</function>.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.getservbyname">
+ <refnamediv>
+ <refname>getservbyname</refname>
+ <refpurpose>
+ 인터넷 서비스와 프로토콜과 조합이 되어있는 포트 번호를
+가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>getservbyname</function>
+ </funcdef>
+ <paramdef>string <parameter>service</parameter>
+ </paramdef>
+ <paramdef>string
+<parameter>protocol</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Getservbyname</function>은
+<filename>/etc/services</filename>
+ 에 정의된 <parameter>protocol</parameter>의
+<parameter>service</parameter>에
+ 대응이 되는 인터넷 포트를 반환합니다.
+ <parameter>protocol</parameter>은 <literal>TCP</literal> 이거나
+<literal>UDP</literal>입니다.
+ </para>
+ <para>
+ 참조: <function>getservbyport</function>.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.getservbyport">
+ <refnamediv>
+ <refname>getservbyport</refname>
+ <refpurpose>
+ 포트와 프로토콜에 대응이 되는 인터넷 서비스를
+가져옵니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string
+<function>getservbyport</function>
+ </funcdef>
+ <paramdef>int <parameter>port</parameter>
+ </paramdef>
+ <paramdef>string
+<parameter>protocol</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Getservbyport</function>는 /etc/services의
+각 <parameter>protocol</parameter>
+ 에 정의된 <parameter>port</parameter>와 조합이 되는 인터넷
+서비스를 반환합니다.
+ <parameter>protocol</parameter>은 <literal>TCP</literal>이거나
+<literal>UDP</literal>입니다.
+ </para>
+ <para>
+ 참조: <function>getservbyname</function>.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.ip2long">
+ <refnamediv>
+ <refname>ip2long</refname>
+ <refpurpose>
+ (IPv4) 인터넷 프로토콜의 점이 찍혀 있는 주소를 포함한
+문자열을 고유의 주소로 바꾸어줍니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>ip2long</function>
+ </funcdef>
+ <paramdef>string
+<parameter>ip_address</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>ip2long</function> 함수는
+보통의(점이 찍혀 있는 문자열) 인터넷 표시 형식에서 IPv4
+인터넷 네트워크 주소를 생성합니다.
<example>
- <title><function>Ip2long</function> Example</title>
- <programlisting role="php">
+ <title>
+ <function>Ip2long</function>
+Example</title>
+ <programlisting role="php">
<?php
$ip = gethostbyname("www.php.net");
-$out = "The following URLs are equivalent:<br>\n";
+$out = "아래의 URL과 같습니다:<br>\n";
$out .= "http://www.php.net/, http://".$ip."/, and
http://".ip2long($ip)."/<br>\n";
echo $out;
?>
</programlisting>
- </example>
- </para>
- <para>
+ </example>
+ </para>
+ <para>
See also: <function>long2ip</function>
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.long2ip">
- <refnamediv>
- <refname>long2ip</refname>
- <refpurpose>
- Converts an (IPv4) Internet network address into a string in Internet
- standard dotted format
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>long2ip</function></funcdef>
- <paramdef>int <parameter>proper_address</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- The function <function>long2ip</function> generates an Internet address
- in dotted format (i.e.: aaa.bbb.ccc.ddd) from the proper address
- representation.
- </para>
- <para>
- See also: <function>ip2long</function>
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.openlog">
- <refnamediv>
- <refname>openlog</refname>
- <refpurpose>Open connection to system logger</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>openlog</function></funcdef>
- <paramdef>string <parameter>ident</parameter></paramdef>
- <paramdef>int <parameter>option</parameter></paramdef>
- <paramdef>int <parameter>facility</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Openlog</function> opens a connection to the system
- logger for a program. The string <parameter>ident</parameter> is
- added to each message. Values for <parameter>option</parameter>
- and <parameter>facility</parameter> are given below.
- The <parameter>option</parameter> argument is used to indicate
- what loggin options will be used when generating a log message.
- The <parameter>facility</parameter> argument is used to specify what
- type of program is logging the message. This allows you to specify
- (in your machine's syslog configuration) how messages coming from
- different facilities will be handled.
- The use of <function>openlog</function> is optional. It
- will automatically be called by <function>syslog</function> if
- necessary, in which case <parameter>ident</parameter> will default
- to false.
- </para>
- <para>
- <table>
- <title><function>Openlog</function> Options</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Constant</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>LOG_CONS</entry>
- <entry>
- if there is an error while sending data to the system logger,
- write directly to the system console
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.long2ip">
+ <refnamediv>
+ <refname>long2ip</refname>
+ <refpurpose>
+ (IPv4) 인터넷 네크워크 주소를 인터넷 표준의 점이 찍혀있는
+문자열로 바꿉니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>long2ip</function>
+ </funcdef>
+ <paramdef>int
+<parameter>proper_address</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>long2ip</function>는 고유의 주소
+표시 형식을 점이 찍혀 있는 인터넷 주소
+ 표시형식(예를 들면 : aaa.bbb.ccc.ddd)으로 바꾸어줍니다.
+ </para>
+ <para>
+ 참조: <function>ip2long</function>
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.openlog">
+ <refnamediv>
+ <refname>openlog</refname>
+ <refpurpose>시스템 로그에 연결합니다</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>openlog</function>
+ </funcdef>
+ <paramdef>string <parameter>ident</parameter>
+ </paramdef>
+ <paramdef>int <parameter>option</parameter>
+ </paramdef>
+ <paramdef>int <parameter>facility</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Openlog</function>는 프로그램에
+사용하는 시스템 로그 기록자에 연결을 열어줍니다. opens a
+connection to the system
+ logger for a program. 문자열 <parameter>ident</parameter>는 각각의
+메시지에 추가됩니다.
+ <parameter>option</parameter>과 <parameter>facility</parameter>에 대한
+값은 아래에 주어집니다.
+ <parameter>option</parameter>의 인수는 로그 메시지를 생성할때
+어떤 로긴 옵션이 사용되었는지
+ 알아내는 데 사용됩니다.
+ <parameter>facility</parameter>의 인수는 어떤 형식의 프로그램이
+로그 메시지를 남기는 지 정의하는데 사용됩니다.
+ 이것은 당신이 정의(기계의 syslog 설정)할 때 서로 다른
+설비에서 들어오는 메시지 중 어떤 메시지를 핸들할지 정의할
+수 있도록 합니다.
+ <function>openlog</function>의 사용은 선택적입니다.
+ 이것은 <parameter>ident</parameter>가 기본적으로 false일 경우
+필요하다면 자동으로 <function>syslog</function>에 의해 호출됩니다.
+ </para>
+ <para>
+ <table>
+ <title>
+ <function>Openlog</function>
+Options</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Constant</entry>
+
+<entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>LOG_CONS</entry>
+ <entry>
+ 시스템 로그 기록자에 데이터를 보내는 중에 에러가
+발생한다면 직접적으로 시스템 콘솔에 기록합니다.
</entry>
- </row>
- <row>
- <entry>LOG_NDELAY</entry>
- <entry>
- open the connection to the logger immediately
+ </row>
+ <row>
+
+<entry>LOG_NDELAY</entry>
+ <entry>
+ 로그기록자에 대한 연결을 즉시 엽니다.
</entry>
- </row>
- <row>
- <entry>LOG_ODELAY</entry>
- <entry>
- (default) delay openning the connection until the first
- message is logged
+ </row>
+ <row>
+
+<entry>LOG_ODELAY</entry>
+ <entry>
+ (기본값) 첫번째 메시지가 로그에 기록될때까지 연결을
+여는 것을 미룹니다.
</entry>
- </row>
- <row>
- <entry>LOG_PERROR</entry>
- <entry>print log message also to standard error</entry>
- </row>
- <row>
- <entry>LOG_PID</entry>
- <entry>include PID with each message</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- You can use one or more of this options. When using multiple options
- you need to <literal>OR</literal> them, i.e. to open the connection
- immediately, write to the consoloe and include the PID in each message,
- you will use: <literal>LOG_CONS | LOG_NDELAY | LOG_PID</literal>
- </para>
- <para>
- <table>
- <title><function>Openlog</function> Facilities</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Constant</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>LOG_AUTH</entry>
- <entry>
- security/authorization messages (use LOG_AUTHPRIV instead
- in systems where that constant is defined)
+ </row>
+ <row>
+
+<entry>LOG_PERROR</entry>
+ <entry>로그
+메시지 역시 표준 에러로 출력합니다.</entry>
+ </row>
+ <row>
+ <entry>LOG_PID</entry>
+ <entry>각각의
+메시지마다 PID를 포함시킵니다.</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ 이 옵션들 중에서 한개 혹은 한개 이상을 사용할 수
+있습니다.
+ 여러개의 옵션을 사용할 경우 <literal>OR</literal>할 필요가
+있습니다. 예를 들자면
+ 즉시 연결을 열고, 콘솔에 기록하고, 각각의 메시지에 PID를
+포함시킨다면
+ 다음과 같이 사용합니다: <literal>LOG_CONS | LOG_NDELAY |
+LOG_PID</literal>
+ </para>
+ <para>
+ <table>
+ <title>
+ <function>Openlog</function>
+Facilities</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Constant</entry>
+
+<entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>LOG_AUTH</entry>
+ <entry>
+ 보안/인증 메시지 (상수가 정의된 시스템대신 LOG_AUTHPRIV
+를 사용)
</entry>
- </row>
- <row>
- <entry>LOG_AUTHPRIV</entry>
- <entry>security/authorization messages (private)</entry>
- </row>
- <row>
- <entry>LOG_CRON</entry>
- <entry>clock daemon (cron and at)</entry>
- </row>
- <row>
- <entry>LOG_DAEMON</entry>
- <entry>other system daemons</entry>
- </row>
- <row>
- <entry>LOG_KERN</entry>
- <entry>kernel messages</entry>
- </row>
- <row>
- <entry>LOG_LOCAL0 ... LOG_LOCAL7</entry>
- <entry>reserved for local use</entry>
- </row>
- <row>
- <entry>LOG_LPR</entry>
- <entry>line printer subsystem</entry>
- </row>
- <row>
- <entry>LOG_MAIL</entry>
- <entry>mail subsystem</entry>
- </row>
- <row>
- <entry>LOG_NEWS</entry>
- <entry>USENET news subsystem</entry>
- </row>
- <row>
- <entry>LOG_SYSLOG</entry>
- <entry>messages generated internally by syslogd</entry>
- </row>
- <row>
- <entry>LOG_USER</entry>
- <entry>generic user-level messages</entry>
- </row>
- <row>
- <entry>LOG_UUCP</entry>
- <entry>UUCP subsystem</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </para>
- <para>
- See also <function>define_syslog_variables</function>,
- <function>syslog</function> and
+ </row>
+ <row>
+
+<entry>LOG_AUTHPRIV</entry>
+ <entry>보안/인증
+메시지 (private)</entry>
+ </row>
+ <row>
+ <entry>LOG_CRON</entry>
+ <entry>클락
+데몬clock daemon (cron and at)</entry>
+ </row>
+ <row>
+
+<entry>LOG_DAEMON</entry>
+ <entry>다른
+시스템 데몬</entry>
+ </row>
+ <row>
+ <entry>LOG_KERN</entry>
+ <entry>커널
+메시지</entry>
+ </row>
+ <row>
+ <entry>LOG_LOCAL0 ...
+LOG_LOCAL7</entry>
+ <entry>로컬
+사용을 위해 예약된 것</entry>
+ </row>
+ <row>
+ <entry>LOG_LPR</entry>
+ <entry>라인
+프린터 하위시스템</entry>
+ </row>
+ <row>
+ <entry>LOG_MAIL</entry>
+ <entry>메일 하위
+시스템</entry>
+ </row>
+ <row>
+ <entry>LOG_NEWS</entry>
+ <entry>USENET 뉴스
+하위 시스템</entry>
+ </row>
+ <row>
+
+<entry>LOG_SYSLOG</entry>
+ <entry>syslogd에
+의해 내부적으로 생성된 메시지</entry>
+ </row>
+ <row>
+ <entry>LOG_USER</entry>
+ <entry>일반적인
+사용자 수준의 메시지</entry>
+ </row>
+ <row>
+ <entry>LOG_UUCP</entry>
+ <entry>UUCP 하위
+시스템</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
+ 참조: <function>define_syslog_variables</function>,
+ <function>syslog</function> 그리고
<function>closelog</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.pfsockopen">
- <refnamediv>
- <refname>pfsockopen</refname>
- <refpurpose>
- Open persistent Internet or Unix domain socket connection
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>pfsockopen</function></funcdef>
- <paramdef>string <parameter>hostname</parameter></paramdef>
- <paramdef>int <parameter>port</parameter></paramdef>
- <paramdef>int
- <parameter><optional>errno</optional></parameter>
- </paramdef>
- <paramdef>string
- <parameter><optional>errstr</optional></parameter>
- </paramdef>
- <paramdef>int
- <parameter><optional>timeout</optional></parameter>
- </paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- This function behaves exactly as <function>fsockopen</function>
- with the difference that the connection is not closed after the
- script finishes. It is the persistent version of
- <function>fsockopen</function>.
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.socket-get-status">
- <refnamediv>
- <refname>socket_get_status</refname>
- <refpurpose>
- Returns information about existing socket resource
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>array <function>socket_get_status</function></funcdef>
- <paramdef>resource
+ </refsect1>
+ </refentry>
+ <refentry id="function.pfsockopen">
+ <refnamediv>
+ <refname>pfsockopen</refname>
+ <refpurpose>
+ 지속적인 인터넷이나 유닉스 소켓 연결을 엽니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>pfsockopen</function>
+ </funcdef>
+ <paramdef>string
+<parameter>hostname</parameter>
+ </paramdef>
+ <paramdef>int <parameter>port</parameter>
+ </paramdef>
+ <paramdef>int
+ <parameter>
+ <optional>errno</optional>
+ </parameter>
+ </paramdef>
+ <paramdef>string
+ <parameter>
+ <optional>errstr</optional>
+ </parameter>
+ </paramdef>
+ <paramdef>int
+ <parameter>
+ <optional>timeout</optional>
+ </parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ 이 함수는 스크립트가 끝난뒤에도 연결이 닫히지 않는
+차이점을 제외하고 <function>fsockopen</function>과 정확히
+똑같습니다.
+ 이것은 <function>fsockopen</function>의 지속적인 연결
+버전입니다.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.socket-get-status">
+ <refnamediv>
+ <refname>socket_get_status</refname>
+ <refpurpose>
+ 존재하는 소켓의 자원에 대한 정보를 반환합니다.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array
+<function>socket_get_status</function>
+ </funcdef>
+ <paramdef>resource
<parameter>socket_get_status</parameter>
- </paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Returns information about an existing socket resource. Currently
- returns four entries in the result array:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>timed_out</parameter> (bool) - The socket timed out
- waiting for data
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ 존재하는 소켓의 자원에 대한 정보를 반환합니다.
+ 일반적으로 결과 배열안에 네개의 항목을 반환합니다.
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>timed_out</parameter>
+(부울 값) - 데이터를 기다리는 소켓의 시간초과
</para>
- </listitem>
- <listitem>
- <para>
- <parameter>blocked</parameter> (bool) - The socket was blocked
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>blocked</parameter> (부울
+값) - 닫혀진 소켓
</para>
- </listitem>
- <listitem>
- <para>
- <parameter>eof</parameter> (bool) - Indicates EOF event
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>eof</parameter> (부울
+값) - EOF 이벤트 검사
</para>
- </listitem>
- <listitem>
- <para>
- <parameter>unread_bytes</parameter> (int) - Number of bytes
- left in the socket buffer
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>unread_bytes</parameter>
+(정수값) - 소켓의 버퍼에 남겨진 바이트 수
</para>
- </listitem>
- </itemizedlist>
- <para>
- See also
+ </listitem>
+ </itemizedlist>
+ <para>
+ 참조:
<function>accept_connect</function>,
<function>bind</function>,
<function>connect</function>,
- <function>listen</function>, and
+ <function>listen</function>,
<function>strerror</function>.
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.socket-set-blocking">
- <refnamediv>
- <refname>socket_set_blocking</refname>
- <refpurpose>Set blocking/non-blocking mode on a socket</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>socket_set_blocking</function></funcdef>
- <paramdef>int <parameter>socket descriptor</parameter></paramdef>
- <paramdef>int <parameter>mode</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- If <parameter>mode</parameter> is false, the given socket
- descriptor will be switched to non-blocking mode, and if true, it
- will be switched to blocking mode. This affects calls like
- <function>fgets</function> that read from the socket. In
- non-blocking mode an <function>fgets</function> call will always
+ </refsect1>
+ </refentry>
+ <refentry id="function.socket-set-blocking">
+ <refnamediv>
+ <refname>socket_set_blocking</refname>
+ <refpurpose>소켓의 모드를 설정 (blocking 모드/
+non-blocking 모드)</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int
+<function>socket_set_blocking</function>
+ </funcdef>
+ <paramdef>int <parameter>socket
+descriptor</parameter>
+ </paramdef>
+ <paramdef>int <parameter>mode</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <parameter>mode</parameter>가 false이면, 소켓
+서술자는 모드를 non-blocking 모드로 전환할 것입니다.the given socket
+ 그리고 true일 경우 서술자는 blocking 모드로 전환할 것입니다.
+ 이것의 효과는 소켓에서 읽어들인 <function>fgets</function>와
+비슷합니다.
+ non-blocking 모드에서 <function>fgets</function>호출은
+ 항상 소켓에서 사용가능하게 되기를 대기하고 있는
+데이타를
+ blocking 모드일 때 바로 반환합니다.
+ will always
return right away while in blocking mode it will wait for data to
become available on the socket.
- </para>
- <para>
- This function was previously called as
- <function>set_socket_blocking</function> but this usage is deprecated.
</para>
- </refsect1>
- </refentry>
-
- <refentry id="function.socket-set-timeout">
- <refnamediv>
- <refname>socket_set_timeout</refname>
- <refpurpose>Set timeout period on a socket</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>bool <function>socket_set_timeout</function></funcdef>
- <paramdef>int <parameter>socket descriptor</parameter></paramdef>
- <paramdef>int <parameter>seconds</parameter></paramdef>
- <paramdef>int <parameter>microseconds</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Sets the timeout value on <parameter>socket descriptor</parameter>,
- expressed in the sum of <parameter>seconds</parameter> and
- <parameter>microseconds</parameter>.
+ <para>
+ 이 함수는 이전에는 <function>set_socket_blocking</function>로 불려
+졌지만
+ 지금은 그렇게 사용되지 않습니다.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.socket-set-timeout">
+ <refnamediv>
+ <refname>socket_set_timeout</refname>
+ <refpurpose>소켓에서의 시간초과 주기</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>bool
+<function>socket_set_timeout</function>
+ </funcdef>
+ <paramdef>int <parameter>socket
+descriptor</parameter>
+ </paramdef>
+ <paramdef>int <parameter>seconds</parameter>
+ </paramdef>
+ <paramdef>int
+<parameter>microseconds</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <parameter>seconds</parameter>와
+<parameter>microseconds</parameter>의 합을 사용해서
+ <parameter>socket descriptor</parameter>의 시간초과 값을
+설정합니다.
<example>
- <title><function>socket_set_timeout</function> Example</title>
- <programlisting role="php">
+ <title>
+
+<function>socket_set_timeout</function> Example</title>
+ <programlisting role="php">
<?php
$fp = fsockopen("www.php.net", 80);
if(!$fp) {
- echo "Unable to open\n";
+ echo "열 수 없습니다\n";
} else {
fputs($fp,"GET / HTTP/1.0\n\n");
$start = time();
@@ -858,136 +861,138 @@
}
?>
</programlisting>
- </example>
- </para>
- <para>
- This function was previously called as
- <function>set_socket_timeout</function> but this usage is deprecated.
- </para>
- <para>
- See also: <function>fsockopen</function> and <function>fopen</function>.
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.syslog">
- <refnamediv>
- <refname>syslog</refname>
- <refpurpose>Generate a system log message</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>syslog</function></funcdef>
- <paramdef>int <parameter>priority</parameter></paramdef>
- <paramdef>string <parameter>message</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Syslog</function> generates a log message that will be
- distributed by the system logger.
- <parameter>priority</parameter> is a combination of the facility
- and the level, values for which are given in the next section.
- The remaining argument is the message to send, except that the
- two characters <literal>%m</literal> will be replaced by the
- error message string (strerror) corresponding to the present
- value of <errortype>errno</errortype>.
- </para>
- <para>
- <table>
- <title><function>Syslog</function> Priorities (in descending order)</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Constant</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>LOG_EMERG</entry>
- <entry>system is unusable</entry>
- </row>
- <row>
- <entry>LOG_ALERT</entry>
- <entry>action must be taken immediately</entry>
- </row>
- <row>
- <entry>LOG_CRIT</entry>
- <entry>critical conditions</entry>
- </row>
- <row>
- <entry>LOG_ERR</entry>
- <entry>error conditions</entry>
- </row>
- <row>
- <entry>LOG_WARNING</entry>
- <entry>warning conditions</entry>
- </row>
- <row>
- <entry>LOG_NOTICE</entry>
- <entry>normal, but significant, condition</entry>
- </row>
- <row>
- <entry>LOG_INFO</entry>
- <entry>informational message</entry>
- </row>
- <row>
- <entry>LOG_DEBUG</entry>
- <entry>debug-level message</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </para>
- <para>
- <example>
- <title>Using <function>syslog</function></title>
- <programlisting role="php">
+ </example>
+ </para>
+ <para>
+ 이 함수는 이전에는<function>set_socket_timeout</function>처럼
+불려졌지만
+ 지금은 그렇게 사용되지 않습니다.
+ </para>
+ <para>
+ 참조: <function>fsockopen</function>, <function>fopen</function>.
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.syslog">
+ <refnamediv>
+ <refname>syslog</refname>
+ <refpurpose>시스템 로그 메시지를
+생성합니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>syslog</function>
+ </funcdef>
+ <paramdef>int <parameter>priority</parameter>
+ </paramdef>
+ <paramdef>string <parameter>message</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Syslog</function>는 시스템 기록자에
+의해 배분이 될 로그 메시지를 생성합니다.
+ <parameter>priority</parameter>는 다음 장에서 주어진 값에 대한
+난이도와 수준의 조합입니다.
+ 남겨진 인수는 현재의 <errortype>errno</errortype> 값에 대응이
+되는 에러 메시지 문자열(strerror)은
+ <literal>%m</literal>의 두개 문자로 대치가 되고 나머지는
+보내지는 메시지 입니다.
+ </para>
+ <para>
+ <table>
+ <title>
+ <function>Syslog</function>
+우선순위 (역순정렬)</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Constant</entry>
+
+<entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+
+<entry>LOG_EMERG</entry>
+ <entry>시스템을
+사용할 수 없습니다.</entry>
+ </row>
+ <row>
+
+<entry>LOG_ALERT</entry>
+ <entry>즉시
+수행해야 할 행동</entry>
+ </row>
+ <row>
+ <entry>LOG_CRIT</entry>
+ <entry>위험한
+상태</entry>
+ </row>
+ <row>
+ <entry>LOG_ERR</entry>
+ <entry>에러
+상태</entry>
+ </row>
+ <row>
+
+<entry>LOG_WARNING</entry>
+ <entry>경고
+상태</entry>
+ </row>
+ <row>
+
+<entry>LOG_NOTICE</entry>
+
+<entry>일반적이지만 중요한 상태</entry>
+ </row>
+ <row>
+ <entry>LOG_INFO</entry>
+ <entry>정보
+메시지</entry>
+ </row>
+ <row>
+
+<entry>LOG_DEBUG</entry>
+ <entry>디버그
+수준 메시지</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
+ <example>
+ <title>
+ <function>syslog</function>의 사용
+ </title>
+ <programlisting role="php">
<?php
define_syslog_variables();
-// open syslog, include the process ID and also send
-// the log to standard error, and use a user defined
-// logging mechanism
+// 프로세스 ID를 포함하고 있으며 로그를 표준 에러로 보내는
+syslog를 열고
+// 사용자에 의해 정의된 logging 메카니즘을 사용합니다.
openlog("myScripLog", LOG_PID | LOG_PERROR, LOG_LOCAL0);
-// some code
+// 코드가 들어갑니다.
if (authorized_client()) {
- // do something
+ // 무슨 일인가를 수행합니다.
+
} else {
- // unauthorized client!
- // log the attempt
+ // 인증되지 않은 사용자!
+ // 로그를 시도합니다.
$access = date("Y/m/d H:i:s");
- syslog(LOG_WARNING,"Unauthorized client: $access $REMOTE_ADDR
($HTTP_USER_AGENT)");
+ syslog(LOG_WARNING,"인증되지 않은 사용자: $access $REMOTE_ADDR
+($HTTP_USER_AGENT)");
}
closelog();
?>
</programlisting>
- </example>
- For information on setting up a user defined log handler, see the
- <citerefentry><refentrytitle>syslog.conf</refentrytitle>
- <manvolnum>5</manvolnum></citerefentry> Unix manual page. More
- information on the syslog facilities and option can be found in the man
- pages for <citerefentry><refentrytitle>syslog</refentrytitle>
- <manvolnum>3</manvolnum></citerefentry> on Unix machines.
- </para>
- <para>
- On Windows NT, the syslog service is emulated using the Event
- Log.
- </para>
- <para>
- See also <function>define_syslog_variables</function>,
- <function>openlog</function> and
+ </example>
+ 사용자가 정의한 로그 핸들러를 설정하기 위한 정보는
+ <citerefentry>
+ <refentrytitle>syslog.conf</refentrytitle>
+ <manvolnum>5</manvolnum>
+ </citerefentry>유닉스의 기능설명(manual)
+페이지를 보세요.
+ syslog 난이도와 옵션에 관해서 정보를 좀 더 알고 싶을 때는
+ <citerefentry>
+ <refentrytitle>syslog</refentrytitle>
+ <manvolnum>3</manvolnum>
+ </citerefentry> 유닉스 머신의 man
+페이지에서 찾아 볼 수 있습니다.
+ </para>
+ <para>
+ Windows NT에서 syslog 서비스는 이벤트 로그로 에뮬레이트 되어
+사용됩니다.
+ </para>
+ <para>
+ 참조: <function>define_syslog_variables</function>,
+ <function>openlog</function>,
<function>closelog</function>.
</para>
- </refsect1>
- </refentry>
-
- </reference>
-
+ </refsect1>
+ </refentry>
+</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Index: phpdoc/kr/functions/nis.xml
diff -u phpdoc/kr/functions/nis.xml:1.2 phpdoc/kr/functions/nis.xml:1.3
--- phpdoc/kr/functions/nis.xml:1.2 Fri Jan 12 06:16:40 2001
+++ phpdoc/kr/functions/nis.xml Sat Feb 3 09:39:45 2001
@@ -1,257 +1,262 @@
- <reference id="ref.nis">
- <title>YP/NIS Functions</title>
- <titleabbrev>YP/NIS</titleabbrev>
-
- <partintro>
- <para>
- NIS (formerly called Yellow Pages) allows network management of
- important administrative files (e.g. the password file). For more
- information refer to the NIS manpage and <ulink url="&url.nis;">
- Introduction to YP/NIS</ulink>. There is also a book called <ulink
- url="&url.nis.book;">Managing NFS and NIS</ulink> by Hal Stern.
+<reference id="ref.nis">
+ <title>YP/NIS Functions</title>
+ <titleabbrev>YP/NIS</titleabbrev>
+ <partintro>
+ <para>
+ NIS (이전에는 옐로우 페이지(Yellow Pages)라고 불려졌습니다)는
+중요한 관리자용 파일(예를 들면 패스워드 파일같은)을
+네트워크 관리가 가능하도록 합니다.
+ 더 이상의 정보는 NIS의 man 페이지와 <ulink
+url="&url.nis;">Introduction to YP/NIS</ulink>에 좀 더 참조할 만한 정보가
+있습니다.
+ 또 <ulink url="&url.nis.book;">Managing NFS and NIS</ulink>라고 부르는
+Hal Stern의 책도 있습니다.
</para>
- <para>
- To get these functions to work, you have to configure PHP with
- <option role="configure">--with-yp</option>(PHP 3) or
- <option role="configure">--enable-yp</option>(PHP 4).
+ <para>
+ 이 함수가 동작하도록 하고 싶다면 PHP를
+ <option role="configure">--with-yp</option>(PHP 3)이나
+ <option role="configure">--enable-yp</option>(PHP 4)로 설정해야 합니다.
</para>
- </partintro>
-
- <refentry id="function.yp-get-default-domain">
- <refnamediv>
- <refname>yp_get_default_domain</refname>
- <refpurpose>Fetches the machine's default NIS domain</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>yp_get_default_domain</function></funcdef>
- <paramdef>void <parameter></parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Yp_get_default_domain</function> returns the default
- domain of the node or FALSE. Can be used as the domain parameter
- for successive NIS calls.
- </para>
- <para>
- A NIS domain can be described a group of NIS maps. Every host
- that needs to look up information binds itself to a certain
- domain. Refer to the documents mentioned at the beginning for
- more detailed information.
- </para>
- <para>
- <example>
- <title>Example for the default domain</title>
- <programlisting role="php">
+ </partintro>
+ <refentry id="function.yp-get-default-domain">
+ <refnamediv>
+ <refname>yp_get_default_domain</refname>
+ <refpurpose>머신의 NIS 도메인의 기본값을
+가져옵니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int
+<function>yp_get_default_domain</function>
+ </funcdef>
+ <paramdef>void <parameter/>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Yp_get_default_domain</function>는
+노드의 기본값을 반환하거나 FALSE를 반환합니다.
+ 계속적인 NIS 호출을 위한 도메인의 매개변수로 사용될 수
+있습니다.
+ </para>
+ <para>
+ NIS 도메인은 NIS 맵(map)으로 설명될 수 있습니다. 모든
+호스트는 어떤 도메인에 대한 자신의 바인드 정보를
+ 찾아야 할 필요가 있습니다. 좀 더 상세한 정보를 얻기
+위해서 앞부분에 언급한 문서를 참조 하십시오.
+ </para>
+ <para>
+ <example>
+ <title>기본 도메인에 관한
+예문</title>
+ <programlisting role="php">
<?php
$domain = yp_get_default_domain();
-echo "Default NIS domain is: " . $domain;
+echo "기본 NIS 도메인은: " . $domain;
?>
</programlisting>
- </example>
- </para>
-<!--
+ </example>
+ </para>
+ <!--
<para>
See also: <link linkend="function.yp-errno">yp_errno</link> and
<link linkend="function.yp-err-string">yp_err_string</link>
</para>
-->
- </refsect1>
- </refentry>
-
- <refentry id="function.yp-order">
- <refnamediv>
- <refname>yp_order</refname>
- <refpurpose>Returns the order number for a map</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>int <function>yp_order</function></funcdef>
- <paramdef>string <parameter>domain</parameter></paramdef>
- <paramdef>string <parameter>map</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Yp_order</function> returns the order number for a map
- or FALSE.
- </para>
- <para>
- <example>
- <title>Example for the NIS order</title>
- <programlisting role="php">
+ </refsect1>
+ </refentry>
+ <refentry id="function.yp-order">
+ <refnamediv>
+ <refname>yp_order</refname>
+ <refpurpose>map에 사용되는 순서번호를 반환합니다
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>yp_order</function>
+ </funcdef>
+ <paramdef>string <parameter>domain</parameter>
+ </paramdef>
+ <paramdef>string <parameter>map</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Yp_order</function>는 맵(map)의
+순서번호를 반환하거나 FALSE를 반환합니다.
+ </para>
+ <para>
+ <example>
+ <title>NIS 순서 예문</title>
+ <programlisting role="php">
<?php
$number = yp_order($domain,$mapname);
- echo "Order number for this map is: " . $order;
+ echo "이 맵(map)의 순서 번호는 : " . $order;
?>
</programlisting>
- </example>
- </para>
- <para>
- See also <function>yp-get-default-domain</function>.
+ </example>
+ </para>
+ <para>
+ 참조: <function>yp-get-default-domain</function>.
<!--
linkend="function.yp-errno">yp_errno</link> and <link
linkend="function.yp-err-string">yp_err_string</link>
-->
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.yp-master">
- <refnamediv>
- <refname>yp_master</refname>
- <refpurpose>
- Returns the machine name of the master NIS server for a map
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.yp-master">
+ <refnamediv>
+ <refname>yp_master</refname>
+ <refpurpose>
+ 맵(map)에 사용되는 마스터 NIS 서버의 머신 이름을
+반환합니다.
</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>yp_master</function></funcdef>
- <paramdef>string <parameter>domain</parameter></paramdef>
- <paramdef>string <parameter>map</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Yp_master</function> returns the machine name of
- the master NIS server for a map.
- </para>
- <para>
- <example>
- <title>Example for the NIS master</title>
- <programlisting role="php">
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>yp_master</function>
+ </funcdef>
+ <paramdef>string <parameter>domain</parameter>
+ </paramdef>
+ <paramdef>string <parameter>map</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Yp_master</function>는 맵(map)에
+사용되는 마스터 NIS 서버의 머신 이름을 반환합니다.
+ </para>
+ <para>
+ <example>
+ <title>NIS 마스터(master)의 예문</title>
+ <programlisting role="php">
<?php
$number = yp_master ($domain, $mapname);
-echo "Master for this map is: " . $master;
+echo "이 맵(map)의 마스터는: " . $master;
?>
</programlisting>
- </example>
- </para>
- <para>
- See also <function>yp-get-default-domain</function>.
+ </example>
+ </para>
+ <para>
+ 참조: <function>yp-get-default-domain</function>.
<!--
linkend="function.yp-errno">yp_errno</link> and <link
linkend="function.yp-err-string">yp_err_string</link>
-->
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.yp-match">
- <refnamediv>
- <refname>yp_match</refname>
- <refpurpose>Returns the matched line</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>string <function>yp_match</function></funcdef>
- <paramdef>string <parameter>domain</parameter></paramdef>
- <paramdef>string <parameter>map</parameter></paramdef>
- <paramdef>string <parameter>key</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Yp_match</function> returns the value associated with
- the passed key out of the specified map or FALSE. This key must
- be exact.</para>
- <para>
- <example>
- <title>Example for NIS match</title>
- <programlisting role="php">
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.yp-match">
+ <refnamediv>
+ <refname>yp_match</refname>
+ <refpurpose>매치(match)된 라인을
+반환합니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>string <function>yp_match</function>
+ </funcdef>
+ <paramdef>string <parameter>domain</parameter>
+ </paramdef>
+ <paramdef>string <parameter>map</parameter>
+ </paramdef>
+ <paramdef>string <parameter>key</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Yp_match</function>지정된 맵(map)의
+범위외에서 통과된 키와 조합된 값이나 FALSE를 반환합니다.
+ 이 키 값은 정확한 것이어야 합니다.
+</para>
+ <para>
+ <example>
+ <title>NIS 매치(match)의 예문</title>
+ <programlisting role="php">
<?php
$entry = yp_match ($domain, "passwd.byname", "joe");
-echo "Matched entry is: " . $entry;
+echo "매치(Match)된 목록 : " . $entry;
?>
</programlisting>
- </example>
- </para>
- <para>
- In this case this could be: joe:##joe:11111:100:Joe
+ </example>
+ </para>
+ <para>
+ 이 경우에는 이렇게 될 수 있습니다: joe:##joe:11111:100:Joe
User:/home/j/joe:/usr/local/bin/bash
</para>
- <para>
- See also <function>yp-get-default-domain</function>
-<!--
+ <para>
+ 참조: <function>yp-get-default-domain</function>
+ <!--
linkend="function.yp-errno">yp_errno</link> and <link
linkend="function.yp-err-string">yp_err_string</link>
-->
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.yp-first">
- <refnamediv>
- <refname>yp_first</refname>
- <refpurpose>
- Returns the first key-value pair from the named map
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.yp-first">
+ <refnamediv>
+ <refname>yp_first</refname>
+ <refpurpose>
+ 이름 붙여진 맵(map)에서 첫 번째 key-value 쌍을 반환합니다.
</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>array <function>yp_first</function></funcdef>
- <paramdef>string <parameter>domain</parameter></paramdef>
- <paramdef>string <parameter>map</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Yp_first</function> returns the first key-value
- pair from the named map in the named domain, otherwise FALSE.
- </para>
- <para>
- <example>
- <title>Example for the NIS first</title>
- <programlisting role="php">
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>yp_first</function>
+ </funcdef>
+ <paramdef>string <parameter>domain</parameter>
+ </paramdef>
+ <paramdef>string <parameter>map</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Yp_first</function>는 이름 붙여진
+도메인의 이름 붙여진 맵(map)의 첫 번째
+ key-value 쌍을 반환하고, 그렇지 않은 경우에는 FALSE를
+반환합니다.
+ </para>
+ <para>
+ <example>
+ <title>첫번째 NIS 예문</title>
+ <programlisting role="php">
<?php
$entry = yp_first($domain, "passwd.byname");
$key = key($entry);
- echo "First entry in this map has key " . $key
- . " and value " . $entry[$key];
+ echo "이 목록에서 키 값을 가지고 있는 첫 번째 키는 " . $key
+ . " 그리고 값은 " . $entry[$key];
?>
</programlisting>
- </example>
- </para>
- <para>
- See also <function>yp-get-default-domain</function>
-<!--
+ </example>
+ </para>
+ <para>
+ 참조: <function>yp-get-default-domain</function>
+ <!--
<link linkend="function.yp-errno">yp_errno</link> and <link
linkend="function.yp-err-string">yp_err_string</link>
-->
- </para>
- </refsect1>
- </refentry>
-
- <refentry id="function.yp-next">
- <refnamediv>
- <refname>yp_next</refname>
- <refpurpose>Returns the next key-value pair in the named
- map.</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>array <function>yp_next</function></funcdef>
- <paramdef>string <parameter>domain</parameter></paramdef>
- <paramdef>string <parameter>map</parameter></paramdef>
- <paramdef>string <parameter>key</parameter></paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- <function>Yp_next</function> returns the next key-value pair in
- the named map after the specified key or FALSE.
- </para>
- <para>
- <example>
- <title>Example for NIS next</title>
- <programlisting role="php">
+ </para>
+ </refsect1>
+ </refentry>
+ <refentry id="function.yp-next">
+ <refnamediv>
+ <refname>yp_next</refname>
+ <refpurpose>이름 붙여진 맵(map)에서 다음의
+key-value 쌍을 반환합니다.</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>yp_next</function>
+ </funcdef>
+ <paramdef>string <parameter>domain</parameter>
+ </paramdef>
+ <paramdef>string <parameter>map</parameter>
+ </paramdef>
+ <paramdef>string <parameter>key</parameter>
+ </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ <function>Yp_next</function>키가 지정된 후에
+이름 붙여진 맵(map)에서 다음의 key-value쌍을
+ 반환하거나 FALSE를 반환합니다.
+ </para>
+ <para>
+ <example>
+ <title>NIS next 예문</title>
+ <programlisting role="php">
<?php
$entry = yp_next ($domain, "passwd.byname", "joe");
@@ -261,23 +266,22 @@
$key = key ($entry);
-echo "The next entry after joe has key " . $key
- . " and value " . $entry[$key];
+echo "joe가 키를 가진 뒤의 다음 목록" . $key
+ . " 값 " . $entry[$key];
?>
</programlisting>
- </example>
- </para>
- <para>
- See also <function>yp-get-default-domain</function>.
+ </example>
+ </para>
+ <para>
+ 참조: <function>yp-get-default-domain</function>.
<!--
<link linkend="function.yp-errno">yp_errno</link> and <link
linkend="function.yp-err-string">yp_err_string</link>
-->
- </para>
- </refsect1>
- </refentry>
-
-<!-- Function doesn't exist
+ </para>
+ </refsect1>
+ </refentry>
+ <!-- Function doesn't exist
<refentry id="function.yp-errno">
<refnamediv>
@@ -328,8 +332,7 @@
</refentry>
-->
-
-<!-- Function doesn't exist
+ <!-- Function doesn't exist
<refentry id="function.yp-err-string">
<refnamediv>
@@ -368,9 +371,7 @@
</refentry>
-->
-
- </reference>
-
+</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml