cvs: phpdoc /kr/functions network.xml nis.xml
| From: | Gwangjong Lee | Date: | Sat, 03 Feb 2001 17:39:45 +0000 |
| Subject: | cvs: phpdoc /kr/functions network.xml nis.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969334132@lists.php.net to get a copy of this message | ||
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
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