cvs: phpdoc-ja /reference/network constants.xml ini.xml /reference/network/functions checkdnsrr.xml closelog.xml dns-check-record.xml dns-get-mx.xml
fsockopen.xml gethostbyaddr.xml gethostbyname.xml gethostbynamel.xml getmxrr.xml getprotobyname.xml getservbyname.xml ip2long.xml long2ip.xml
openlog.xml pfsockopen.xml socket-get-status.xml socket-set-blocking.xml socket-set-timeout.xml syslog.xml
| From: | TAKAGI Masahiro | Date: | Mon, 25 Jul 2005 07:00:53 +0000 |
| Subject: | cvs: phpdoc-ja /reference/network constants.xml ini.xml /reference/network/functions checkdnsrr.xml closelog.xml dns-check-record.xml dns-get-mx.xml fsockopen.xml gethostbyaddr.xml gethostbyname.xml gethostbynamel.xml getmxrr.xml getprotobyname.xml getservbyname.xml ip2long.xml long2ip.xml openlog.xml pfsockopen.xml socket-get-status.xml socket-set-blocking.xml socket-set-timeout.xml syslog.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1085@lists.php.net to get a copy of this message | ||
takagi Mon Jul 25 03:00:53 2005 EDT
Modified files:
/phpdoc-ja/reference/network/functions syslog.xml
socket-set-timeout.xml
socket-set-blocking.xml
socket-get-status.xml
pfsockopen.xml openlog.xml
long2ip.xml ip2long.xml
getservbyname.xml
getprotobyname.xml
getmxrr.xml
gethostbynamel.xml
gethostbyname.xml
gethostbyaddr.xml
fsockopen.xml dns-get-mx.xml
dns-check-record.xml
closelog.xml checkdnsrr.xml
/phpdoc-ja/reference/network ini.xml constants.xml
Log:
translation updated.
http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/syslog.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/network/functions/syslog.xml diff -u phpdoc-ja/reference/network/functions/syslog.xml:1.5 phpdoc-ja/reference/network/functions/syslog.xml:1.6 --- phpdoc-ja/reference/network/functions/syslog.xml:1.5 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/syslog.xml Mon Jul 25 03:00:48 2005 @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.9 --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.syslog"> <refnamediv> <refname>syslog</refname> @@ -8,7 +11,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>syslog</methodname> + <type>bool</type><methodname>syslog</methodname> <methodparam><type>int</type><parameter>priority</parameter></methodparam> <methodparam><type>string</type><parameter>message</parameter></methodparam> </methodsynopsis> @@ -86,7 +89,7 @@ // ã¯ã©ã¤ã¢ã³ãã¯æªèªè¨¼! // ãã°ãè¨é²ãã $access = date("Y/m/d H:i:s"); - syslog(LOG_WARNING,"Unauthorized client: $access $REMOTE_ADDR ($HTTP_USER_AGENT)"); + syslog(LOG_WARNING, "Unauthorized client: $access $_SERVER[REMOTE_ADDR] ($_SERVER[HTTP_USER_AGENT])"); } closelog(); http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/socket-set-timeout.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/socket-set-timeout.xml diff -u phpdoc-ja/reference/network/functions/socket-set-timeout.xml:1.4 phpdoc-ja/reference/network/functions/socket-set-timeout.xml:1.5 --- phpdoc-ja/reference/network/functions/socket-set-timeout.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/socket-set-timeout.xml Mon Jul 25 03:00:48 2005 @@ -1,56 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> - <refentry id="function.socket-set-timeout"> - <refnamediv> - <refname>socket_set_timeout</refname> - <refpurpose>ã½ã±ããã®ã¿ã¤ã ã¢ã¦ãæéãè¨å®ãã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>socket_set_timeout</methodname> - <methodparam><type>int</type><parameter>socket descriptor</parameter></methodparam> - <methodparam><type>int</type><parameter>seconds</parameter></methodparam> - <methodparam><type>int</type><parameter>microseconds</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>seconds</parameter>ããã³ - <parameter>microseconds</parameter>ã®åã¨ãã¦è¡¨ãã - ã¿ã¤ã ã¢ã¦ãã®å¤ã<parameter>socket descriptor</parameter>ã«è¨å® - ãã¾ãã - <example> - <title><function>socket_set_timeout</function>ã®ä¾</title> - <programlisting role="php"> -<![CDATA[ -<?php -$fp = fsockopen("www.php.net", 80); -if(!$fp) { - echo "Unable to open\n"; -} else { - fputs($fp,"GET / HTTP/1.0\n\n"); - $start = time(); - socket_set_timeout($fp, 2); - $res = fread($fp, 2000); - var_dump(socket_get_status($fp)); - fclose($fp); - print $res; -} -?> -]]> - </programlisting> - </example> - </para> - <para> - ãã®é¢æ°ã¯ã以å㯠<function>set_socket_timeout</function>ã¨ã㦠- ã³ã¼ã«ããã¦ãã¾ãããããã®é¢æ°ã使ç¨ãããã¨ã¯æ¨å¥¨ããã¾ããã - </para> - <para> - <function>fsockopen</function>ããã³<function>fopen</function>ã - åç §ãã ããã - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.18 --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> +<refentry id="function.socket-set-timeout"> + <refnamediv> + <refname>socket_set_timeout</refname> + <refpurpose>&Alias; <function>stream_set_timeout</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>stream_set_timeout</function>. + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/socket-set-blocking.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/socket-set-blocking.xml diff -u phpdoc-ja/reference/network/functions/socket-set-blocking.xml:1.3 phpdoc-ja/reference/network/functions/socket-set-blocking.xml:1.4 --- phpdoc-ja/reference/network/functions/socket-set-blocking.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/socket-set-blocking.xml Mon Jul 25 03:00:48 2005 @@ -1,33 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.11 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> - <refentry id="function.socket-set-blocking"> - <refnamediv> - <refname>socket_set_blocking</refname> - <refpurpose>ã½ã±ããã«ããããããã¯éãããã¯ã¢ã¼ãã®è¨å®</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>int</type><methodname>socket_set_blocking</methodname> - <methodparam><type>int</type><parameter>socket descriptor</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>mode</parameter>ã&false;ã®å ´åãæå®ããã½ã±ããè¨è¿°å - ã¯éãããã¯ã¢ã¼ãã«åæãã¾ãã&true;ã®å ´åã«ã¯ããããã¯ã¢ã¼ãã« - åæãã¾ããããã¯ãã½ã±ããããèªã¿è¾¼ã¿ãè¡ã - <function>fgets</function>çã®ã³ã¼ã«ã«å½±é¿ãã¾ãã - éãããã¯ã¢ã¼ãã§ã¯<function>fgets</function>ã¯å¸¸ã«ãã ã¡ã«å¤ã - è¿ãã¾ããããããã¯ã¢ã¼ãã§ã¯ãã¼ã¿ãã½ã±ããä¸ã§åå¾å¯è½ã« - ãªãã¾ã§å¾ ã¡ã¤ã¥ãã¾ãã - </para> - <para> - ãã®é¢æ°ã¯ã以åã¯<function>set_socket_blocking</function>ã¨ã㦠- ã³ã¼ã«ããã¦ãã¾ãããããã®ä½¿ç¨æ³ã¯æ¨å¥¨ããã¦ãã¾ããã - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> +<refentry id="function.socket-set-blocking"> + <refnamediv> + <refname>socket_set_blocking</refname> + <refpurpose>&Alias; <function>stream_set_blocking</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>stream_set_blocking</function>. + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/socket-get-status.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/socket-get-status.xml diff -u phpdoc-ja/reference/network/functions/socket-get-status.xml:1.4 phpdoc-ja/reference/network/functions/socket-get-status.xml:1.5 --- phpdoc-ja/reference/network/functions/socket-get-status.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/socket-get-status.xml Mon Jul 25 03:00:48 2005 @@ -1,56 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.14 --> -<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> - <refentry id="function.socket-get-status"> - <refnamediv> - <refname>socket_get_status</refname> - <refpurpose> - æ¢åã®ã½ã±ãããªã½ã¼ã¹ã«é¢ããæ å ±ãè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>socket_get_status</methodname> - <methodparam><type>resource</type><parameter>socket_get_status</parameter></methodparam> - </methodsynopsis> - <para> - æ¢åã®ã½ã±ãããªã½ã¼ã¹ã«é¢ããæ å ±ãè¿ãã¾ããç¾å¨ãçµæã®é åã« - ã¯4ã¤ã®ã¨ã³ããªãè¿ããã¾ãã - </para> - <itemizedlist> - <listitem> - <para> - <parameter>timed_out</parameter> (bool) - ãã¼ã¿ã«é¢ããã½ã±ã - ãã¿ã¤ã ã¢ã¦ã - </para> - </listitem> - <listitem> - <para> - <parameter>blocked</parameter> (bool) - ã½ã±ããã¯ãããã¯ããã - </para> - </listitem> - <listitem> - <para> - <parameter>eof</parameter> (bool) - EOF ã¤ãã³ãã示ã - </para> - </listitem> - <listitem> - <para> - <parameter>unread_bytes</parameter> (int) - ã½ã±ãããããã¡ã® - æ®ãã®ãã¤ãæ° - </para> - </listitem> - </itemizedlist> - <para> - <function>accept_connect</function>, - <function>bind</function>, - <function>connect</function>, - <function>listen</function>, - <function>strerror</function>ãåç §ãã ããã - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.24 --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> +<refentry id="function.socket-get-status"> + <refnamediv> + <refname>socket_get_status</refname> + <refpurpose>&Alias; <function>stream_get_meta_data</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>stream_get_meta_data</function>. + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/pfsockopen.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/network/functions/pfsockopen.xml diff -u phpdoc-ja/reference/network/functions/pfsockopen.xml:1.2 phpdoc-ja/reference/network/functions/pfsockopen.xml:1.3 --- phpdoc-ja/reference/network/functions/pfsockopen.xml:1.2 Tue Sep 10 13:45:41 2002 +++ phpdoc-ja/reference/network/functions/pfsockopen.xml Mon Jul 25 03:00:48 2005 @@ -1,30 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<refentry id="function.pfsockopen"> - <refnamediv> - <refname>pfsockopen</refname> - <refpurpose> - æç¶çãªInternetã¾ãã¯Unixãã¡ã¤ã³ã½ã±ããæ¥ç¶ããªã¼ãã³ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>int</type><methodname>pfsockopen</methodname> - <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>int</type><parameter>port</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>errno</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>errstr</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> - </methodsynopsis> - <para> - ãã®é¢æ°ã¯ã<function>fsockopen</function> ã¨å ¨ãåæ§ã«åä½ãã¾ãã - ãã ãããã®é¢æ°ã«ããæ¥ç¶ã¯ãªã¯ã¨ã¹ããçµäºããå¾ã§ãéããããªã - ã¨ããéããããã¾ãã - ãã®é¢æ°ã¯ã<function>fsockopen</function>ã®æç¶çæ¥ç¶çã§ãã - </para> - </refsect1> -</refentry> +<!-- $Revision: 1.3 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> + <refentry id="function.pfsockopen"> + <refnamediv> + <refname>pfsockopen</refname> + <refpurpose> + æç¶ç㪠Internet ã¾ã㯠Unix ãã¡ã¤ã³ã½ã±ããæ¥ç¶ããªã¼ãã³ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>resource</type><methodname>pfsockopen</methodname> + <methodparam><type>string</type><parameter>hostname</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter role="reference">errno</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter role="reference">errstr</parameter></methodparam> + <methodparam choice="opt"><type>float</type><parameter>timeout</parameter></methodparam> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ã<function>fsockopen</function> ã¨å ¨ãåæ§ã«åä½ãã¾ãã + ãã ãããã®é¢æ°ã«ããæ¥ç¶ã¯ãªã¯ã¨ã¹ããçµäºããå¾ã§ãéããããªã + ã¨ããéããããã¾ãã + ãã®é¢æ°ã¯ã<function>fsockopen</function> ã®æç¶çæ¥ç¶çã§ãã + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/openlog.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/network/functions/openlog.xml diff -u phpdoc-ja/reference/network/functions/openlog.xml:1.5 phpdoc-ja/reference/network/functions/openlog.xml:1.6 --- phpdoc-ja/reference/network/functions/openlog.xml:1.5 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/openlog.xml Mon Jul 25 03:00:48 2005 @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.openlog"> <refnamediv> <refname>openlog</refname> @@ -8,7 +10,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>openlog</methodname> + <type>bool</type><methodname>openlog</methodname> <methodparam><type>string</type><parameter>ident</parameter></methodparam> <methodparam><type>int</type><parameter>option</parameter></methodparam> <methodparam><type>int</type><parameter>facility</parameter></methodparam> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/long2ip.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/long2ip.xml diff -u phpdoc-ja/reference/network/functions/long2ip.xml:1.4 phpdoc-ja/reference/network/functions/long2ip.xml:1.5 --- phpdoc-ja/reference/network/functions/long2ip.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/long2ip.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.12 --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.18 --> +<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.long2ip"> <refnamediv> <refname>long2ip</refname> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/ip2long.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/ip2long.xml diff -u phpdoc-ja/reference/network/functions/ip2long.xml:1.4 phpdoc-ja/reference/network/functions/ip2long.xml:1.5 --- phpdoc-ja/reference/network/functions/ip2long.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/ip2long.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.12 --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.18 --> +<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.ip2long"> <refnamediv> <refname>ip2long</refname> @@ -16,41 +18,100 @@ <methodparam><type>string</type><parameter>ip_address</parameter></methodparam> </methodsynopsis> <para> - 颿° <function>ip2long</function> ã¯ãã¤ã³ã¿ã¼ãããæ¨æºå½¢å¼(ãã - ã表è¨ã®æåå)表ç¾ããIPv4 ã¤ã³ã¿ã¼ããããããã¢ãã¬ã¹ãçæã - ã¾ãã - <example> - <title><function>ip2long</function>ã®ä¾</title> - <programlisting role="php"> + 颿° <function>ip2long</function> ã¯ãã¤ã³ã¿ã¼ãããæ¨æºå½¢å¼ + ï¼ããã表è¨ã®æååï¼è¡¨ç¾ãã IPv4 ã¤ã³ã¿ã¼ããããããã¢ãã¬ã¹ã + çæãã¾ãã<parameter>ip_address</parameter> ã䏿£ãªå½¢å¼ã®å ´å㯠+ <literal>-1</literal> ãè¿ãã¾ããPHP ã§ã¯ <literal>-1</literal> + 㨠&false; ã¯ç価ã§ã¯ãªããã¨ã«æ³¨æãã¦ãã ããã + </para> + <note> + <para> + PHP 5.0.0 ã§ã¯ã<function>ip2long</function> 㯠+ <parameter>ip_address</parameter> ã䏿£ãªå½¢å¼ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + </note> + <example> + <title><function>ip2long</function> Example</title> + <programlisting role="php"> <![CDATA[ <?php -$ip = gethostbyname("www.php.net"); -$out = "The following URLs are equivalent:<br>\n"; -$out .= "http://www.php.net/, http://".$ip."/, and http://".sprintf("%u",ip2long($ip))."/<br>\n"; +$ip = gethostbyname('www.example.com'); +$out = "以ä¸ã® URL ã¯åãæå³ã§ã:<br />\n"; +$out .= 'http://www.example.com/, http://' . $ip . '/, and http://' . sprintf("%u", ip2long($ip)) . "/<br />\n"; echo $out; ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + <para> + <note> + <para> + PHP ã®æ´æ°åã¯ç¬¦å·ä»ãå½¢å¼ã§ãããå¤ãã® IP ã¢ãã¬ã¹ã¯è² ã®æ´æ°å¤ã« + ãªãã¾ãããã®ããã符å·ãªã IP ã¢ãã¬ã¹ãæååå½¢å¼ã§åå¾ããã«ã¯ + <function>sprintf</function> ã <function>printf</function> ã§ "%u" + ã使ç¨ããå¿ è¦ãããã¾ãã + </para> + </note> </para> <para> - 2çªç®ã®ä¾ã¯ã<function>printf</function> 颿°ã§å¤æãããã¢ãã¬ã¹ - ãåºåããæ¹æ³ã示ããã®ã§ãã - <example> - <title>IPã¢ãã¬ã¹ã®è¡¨ç¤º</title> + 2 çªç®ã®ä¾ã¯ã<function>printf</function> 颿°ã§å¤æãããã¢ãã¬ã¹ã + åºåããæ¹æ³ã示ããã®ã§ããPHP 4 㨠PHP 5 ã®ã©ã¡ãã§ã使ãã¾ãã + </para> + <example> + <title>IP ã¢ãã¬ã¹ã®è¡¨ç¤º</title> <programlisting role="php"> <![CDATA[ <?php -$ip = gethostbyname("www.php.net"); -printf("%u\n", ip2long($ip)); -echo $out; +$ip = gethostbyname('www.example.com'); +$long = ip2long($ip); + +if ($long == -1 || $long === FALSE) { + echo 'Invalid IP, please try again'; +} else { + echo $ip . "\n"; // 192.0.34.166 + echo $long . "\n"; // -1073732954 + printf("%u\n", ip2long($ip)); // 3221234342 +} +?> +]]> + </programlisting> + </example> + <para> + <function>ip2long</function> ããããåä½ã§ IP ã®æ¤è¨¼ã« + å©ç¨ããã¹ãã§ã¯ããã¾ããã<function>long2ip</function> + ã¨çµã¿åããã¦å©ç¨ãã¾ãã + </para> + <example> + <title>IP ã®æ¤è¨¼</title> + <programlisting role="php"> +<![CDATA[ +<?php +// IP ãæå¹ã§ãããã¨ã確èªãã¾ããã¾ããä¸å®å ¨ãªå½¢å¼ã® IP ã +// 以ä¸ã§ç¤ºããããªæ£ããå½¢å¼ï¼ãããã§ 4 ã¤ã«åºåããã¦ããï¼ã«å¤æãã¾ãã +$ip = long2ip(ip2long("127.0.0.1")); // "127.0.0.1" +$ip = long2ip(ip2long("10.0.0")); // "10.0.0.0" +$ip = long2ip(ip2long("10.0.256")); // "10.0.1.0" ?> ]]> </programlisting> - </example> + </example> + <para> + <function>ip2long</function> ã¯ä¸å®å ¨ãªå½¢å¼ã® IP ã¢ãã¬ã¹ã«å¯¾ãã¦ã + åä½ãã¾ãã詳ããæ å ±ã¯ + <ulink url="&url.ip2long.tech;">&url.ip2long.tech;</ulink> + ãåç §ãã ããã </para> + <note> + <para> + PHP 5 <= 5.0.2 ã§ã¯ãIP <literal>255.255.255.255</literal> + ã«å¯¾ã㦠<function>ip2long</function> ã &false; ãè¿ãã¾ãã + ãã㯠PHP 5.0.3 ã§ <literal>-1</literal> ãè¿ãããã«ä¿®æ£ããã¦ãã¾ã + ï¼PHP 4 ã¨åãåä½ã§ãï¼ã + </para> + </note> <para> - <function>long2ip</function>ãåç §ãã ããã + <function>long2ip</function> + ããã³ <function>sprintf</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/getservbyname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/getservbyname.xml diff -u phpdoc-ja/reference/network/functions/getservbyname.xml:1.4 phpdoc-ja/reference/network/functions/getservbyname.xml:1.5 --- phpdoc-ja/reference/network/functions/getservbyname.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/getservbyname.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.getservbyname"> <refnamediv> <refname>getservbyname</refname> @@ -16,15 +18,38 @@ <methodparam><type>string</type><parameter>protocol</parameter></methodparam> </methodsynopsis> <para> - <function>getservbyname</function>ã¯ã/etc/servicesã«åºã¥ã - æå®ãããããã³ã«<parameter>protocol</parameter>ã«é¢ã㦠- <parameter>service</parameter>ã«å¯¾å¿ããã¤ã³ã¿ã¼ããããã¼ãã + <function>getservbyname</function> ã¯ã/etc/services ã«åºã¥ã + æå®ãããããã³ã« <parameter>protocol</parameter> ã«é¢ã㦠+ <parameter>service</parameter> ã«å¯¾å¿ããã¤ã³ã¿ã¼ããããã¼ãã è¿ãã¾ãã - <parameter>protocol</parameter>ã¯ã<literal>TCP</literal>ã¾ã㯠- <literal>UDP</literal>ã§ããå¿ è¦ãããã¾ãã + <parameter>protocol</parameter> ã¯ã<literal>"tcp"</literal>ï¼å°æåï¼ + ã¾ã㯠<literal>"udp"</literal>ï¼å°æåï¼ã§ããå¿ è¦ãããã¾ãã + <parameter>service</parameter> ããã㯠<parameter>protocol</parameter> + ãè¦ã¤ãããªãã£ãå ´å㯠&false; ãè¿ãã¾ãã </para> <para> - <function>getservbyport</function>ãåç §ãã ããã + <example> + <title><function>getservbyname</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$services = array('http', 'ftp', 'ssh', 'telnet', 'imap', +'smtp', 'nicname', 'gopher', 'finger', 'pop3', 'www'); + +foreach ($services as $service) { + $port = getservbyname($service, 'tcp'); + echo $service . ": " . $port . "<br />\n"; +} +?> +]]> + </programlisting> + </example> + </para> + <para> + ãã¼ãçªå·ã®å®å ¨ãªãªã¹ã㯠&url.network.port-numbers; ãåç §ãã ããã + </para> + <para> + <function>getservbyport</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/getprotobyname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/getprotobyname.xml diff -u phpdoc-ja/reference/network/functions/getprotobyname.xml:1.4 phpdoc-ja/reference/network/functions/getprotobyname.xml:1.5 --- phpdoc-ja/reference/network/functions/getprotobyname.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/getprotobyname.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.getprotobyname"> <refnamediv> <refname>getprotobyname</refname> @@ -20,6 +22,25 @@ åå¾ãã¦è¿ãã¾ãã </para> <para> + <example> + <title><function>getprotobyname</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$protocol = 'tcp'; +$get_prot = getprotobyname($protocol); +if ($get_prot == -1) { + // ä½ãè¦ã¤ãããªããã° -1 ãè¿ãã¾ãã + echo 'Invalid Protocol'; +} else { + echo 'Protocol #' . $get_prot; +} +?> +]]> + </programlisting> + </example> + </para> + <para> <function>getprotobynumber</function>ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/getmxrr.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/getmxrr.xml diff -u phpdoc-ja/reference/network/functions/getmxrr.xml:1.4 phpdoc-ja/reference/network/functions/getmxrr.xml:1.5 --- phpdoc-ja/reference/network/functions/getmxrr.xml:1.4 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/getmxrr.xml Mon Jul 25 03:00:49 2005 @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.getmxrr"> <refnamediv> <refname>getmxrr</refname> @@ -10,10 +13,10 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>getmxrr</methodname> + <type>bool</type><methodname>getmxrr</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>array</type><parameter>mxhosts</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>weight</parameter></methodparam> + <methodparam><type>array</type><parameter role="reference">mxhosts</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">weight</parameter></methodparam> </methodsynopsis> <simpara> <parameter>hostname</parameter>ã«å¯¾å¿ããMXã¬ã³ã¼ããDNSããæ¢ãã¾ãã @@ -42,17 +45,18 @@ <note> <simpara> ãã®é¢æ°ã¯Windowsã§ã¯å®è£ ããã¦ãã¾ããã - <ulink url="&url.php.pear;">PEAR</ulink> classã® - <ulink url="&url.pear.net-dns;">Net_DNS</ulink>. + <ulink url="&url.php.pear;">PEAR</ulink> ã® + <ulink url="&url.pear.package;Net_DNS">Net_DNS</ulink> ã¯ã©ã¹ã試ãã¦ã¿ã¦ãã ããã </simpara> </note> </para> <simpara> <function>checkdnsrr</function>, + <function>dns_get_record</function>, <function>gethostbyname</function>, <function>gethostbynamel</function>, - <function>gethostbyaddr</function>ããã³ - named(8)ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã + <function>gethostbyaddr</function> ããã³ + named(8) ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/gethostbynamel.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/gethostbynamel.xml diff -u phpdoc-ja/reference/network/functions/gethostbynamel.xml:1.3 phpdoc-ja/reference/network/functions/gethostbynamel.xml:1.4 --- phpdoc-ja/reference/network/functions/gethostbynamel.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/gethostbynamel.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.gethostbynamel"> <refnamediv> <refname>gethostbynamel</refname> @@ -17,14 +19,38 @@ </methodsynopsis> <para> <parameter>hostname</parameter>ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã - æ¤ç´¢ãã¦å¾ããã IPã¢ãã¬ã¹ã®ãªã¹ããè¿ãã¾ãã + æ¤ç´¢ãã¦å¾ããã IP ã¢ãã¬ã¹ã®ãªã¹ããè¿ãã¾ãã + ãã <parameter>hostname</parameter> ã解決ã§ããªãã£ãå ´å㯠+ &false; ãè¿ãã¾ãã </para> + <example> + <title><function>gethostbynamel</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + $hosts = gethostbynamel('www.example.com'); + print_r($hosts); +?> +]]> + </programlisting> + <para> + ä¸ã®ä¾ã®åºåã¯ä¾ãã°ä»¥ä¸ã®ããã«ãªãã¾ã: + </para> + <screen> +<![CDATA[ +Array +( + [0] => 192.0.34.166 +) +]]> + </screen> + </example> <para> <function>gethostbyname</function>, <function>gethostbyaddr</function>, <function>checkdnsrr</function>, - <function>getmxrr</function>ããã³ - named(8)ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã + <function>getmxrr</function> ããã³ + named(8) ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/gethostbyname.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/gethostbyname.xml diff -u phpdoc-ja/reference/network/functions/gethostbyname.xml:1.3 phpdoc-ja/reference/network/functions/gethostbyname.xml:1.4 --- phpdoc-ja/reference/network/functions/gethostbyname.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/gethostbyname.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.gethostbyname"> <refnamediv> <refname>gethostbyname</refname> @@ -15,11 +17,27 @@ <methodparam><type>string</type><parameter>hostname</parameter></methodparam> </methodsynopsis> <para> - <parameter>hostname</parameter>ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã® - IPã¢ãã¬ã¹ãè¿ãã¾ãã + <parameter>hostname</parameter> ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã® + IP ã¢ãã¬ã¹ãè¿ãã¾ãã失æããå ´åã¯ããã®ã¾ã¾ã®å½¢ã® + <parameter>hostname</parameter> ãæååã§è¿ãã¾ãã </para> <para> - <function>gethostbyaddr</function>ãåèã«ãã¦ãã ããã + <example> + <title>åç´ãª <function>gethostbyname</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$ip = gethostbyname('www.example.com'); + +echo $ip; +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>gethostbyaddr</function> + ããã³ <function>gethostbynamel</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/gethostbyaddr.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/gethostbyaddr.xml diff -u phpdoc-ja/reference/network/functions/gethostbyaddr.xml:1.3 phpdoc-ja/reference/network/functions/gethostbyaddr.xml:1.4 --- phpdoc-ja/reference/network/functions/gethostbyaddr.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/gethostbyaddr.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.gethostbyaddr"> <refnamediv> <refname>gethostbyaddr</refname> @@ -16,11 +18,26 @@ </methodsynopsis> <para> <parameter>ip_address</parameter>ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã® - ãã¹ãåãè¿ãã¾ããã¨ã©ã¼ãçºçããå ´åã - <parameter>ip_address</parameter>ãè¿ãã¾ãã + ãã¹ãåãè¿ãã¾ãã失æããå ´åã¯ããã®ã¾ã¾ã®å½¢ã® + <parameter>ip_address</parameter> ãæååã§è¿ãã¾ãã </para> <para> - <function>gethostbyname</function>ãåèã«ãã¦ãã ããã + <example> + <title>åç´ãª <function>gethostbyaddr</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); + +echo $hostname; +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>gethostbyname</function> + ããã³ <function>gethostbynamel</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/fsockopen.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/fsockopen.xml diff -u phpdoc-ja/reference/network/functions/fsockopen.xml:1.4 phpdoc-ja/reference/network/functions/fsockopen.xml:1.5 --- phpdoc-ja/reference/network/functions/fsockopen.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/fsockopen.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.fsockopen"> <refnamediv> @@ -14,9 +15,9 @@ <methodsynopsis> <type>resource</type><methodname>fsockopen</methodname> <methodparam><type>string</type><parameter>target</parameter></methodparam> - <methodparam><type>int</type><parameter>port</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>&errno</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>&errstr</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter role="reference">errno</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter role="reference">errstr</parameter></methodparam> <methodparam choice="opt"><type>float</type><parameter>timeout</parameter></methodparam> </methodsynopsis> <para> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/dns-get-mx.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/network/functions/dns-get-mx.xml diff -u phpdoc-ja/reference/network/functions/dns-get-mx.xml:1.2 phpdoc-ja/reference/network/functions/dns-get-mx.xml:1.3 --- phpdoc-ja/reference/network/functions/dns-get-mx.xml:1.2 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/dns-get-mx.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- CREDITS: takagi --> <refentry id="function.dns-get-mx"> <refnamediv> <refname>dns_get_mx</refname> @@ -9,10 +10,10 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>dns_get_mx</methodname> + <type>bool</type><methodname>dns_get_mx</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>array</type><parameter>mxhosts</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>&weight</parameter></methodparam> + <methodparam><type>array</type><parameter role="reference">mxhosts</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">weight</parameter></methodparam> </methodsynopsis> <para> æå®ããã¤ã³ã¿ã¼ããããã¹ãåã«å¯¾å¿ããMXã¬ã³ã¼ããåå¾ãã http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/dns-check-record.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/network/functions/dns-check-record.xml diff -u phpdoc-ja/reference/network/functions/dns-check-record.xml:1.2 phpdoc-ja/reference/network/functions/dns-check-record.xml:1.3 --- phpdoc-ja/reference/network/functions/dns-check-record.xml:1.2 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/dns-check-record.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.1 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- CREDITS: takagi --> <refentry id="function.dns-check-record"> <refnamediv> <refname>dns_check_record</refname> @@ -9,7 +10,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>dns_check_record</methodname> + <type>bool</type><methodname>dns_check_record</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam> </methodsynopsis> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/closelog.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/closelog.xml diff -u phpdoc-ja/reference/network/functions/closelog.xml:1.4 phpdoc-ja/reference/network/functions/closelog.xml:1.5 --- phpdoc-ja/reference/network/functions/closelog.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/closelog.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.closelog"> <refnamediv> <refname>closelog</refname> @@ -9,7 +11,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>closelog</methodname> + <type>bool</type><methodname>closelog</methodname> <void/> </methodsynopsis> <para> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/checkdnsrr.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/checkdnsrr.xml diff -u phpdoc-ja/reference/network/functions/checkdnsrr.xml:1.4 phpdoc-ja/reference/network/functions/checkdnsrr.xml:1.5 --- phpdoc-ja/reference/network/functions/checkdnsrr.xml:1.4 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/checkdnsrr.xml Mon Jul 25 03:00:49 2005 @@ -1,12 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.checkdnsrr"> <refnamediv> <refname>checkdnsrr</refname> <refpurpose> - æå®ããã¤ã³ã¿ã¼ããããã¹ãåãããã¯IPã¢ãã¬ã¹ã«å¯¾å¿ããDNSã¬ã³ã¼ - ããæ¤ç´¢ãã + æå®ããã¤ã³ã¿ã¼ããããã¹ãåããã㯠IP ã¢ãã¬ã¹ã«å¯¾å¿ãã DNS + ã¬ã³ã¼ããæ¤ç´¢ãã </refpurpose> </refnamediv> <refsect1> @@ -17,40 +19,41 @@ <methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam> </methodsynopsis> <simpara> - <parameter>host</parameter>ã«å¯¾å¿ãã<parameter>type</parameter> - åã®ã¬ã³ã¼ããDNSããæ¢ãã¾ããã¬ã³ã¼ããè¦ã¤ãã£ãå ´åã«&true;ã - ä½ãè¦ã¤ãããªããã¨ã©ã¼ãçºçããå ´åã«&false;ãè¿ãã¾ãã + <parameter>host</parameter> ã«å¯¾å¿ãã <parameter>type</parameter> + åã®ã¬ã³ã¼ãã DNS ããæ¢ãã¾ããã¬ã³ã¼ããè¦ã¤ãã£ãå ´åã« &true;ã + ä½ãè¦ã¤ãããªããã¨ã©ã¼ãçºçããå ´åã« &false; ãè¿ãã¾ãã </simpara> <simpara> - <parameter>type</parameter>ã¯ãA,MX,NS,SOA,PTR,CNAME,AAAA,ANYã®ã©ãã - ä¸ã¤ã§ããããã©ã«ãã¯MXã§ãã + <parameter>type</parameter>ã¯ãA, MX, NS, SOA, PTR, CNAME, AAAA, A6, + SRV, NAPTR, ANY ã®ã©ããä¸ã¤ã§ããããã©ã«ã㯠MX ã§ãã </simpara> <simpara> - <parameter>host</parameter>ã¯ã4ã¤ã®ããããç¨ãã表è¨ã® - IPã¢ãã¬ã¹ãããã¯ãã¹ãåã§ãã + <parameter>host</parameter>ã¯ã4 ã¤ã®ããããç¨ãã表è¨ã® + IP ã¢ãã¬ã¹ãããã¯ãã¹ãåã§ãã </simpara> <para> <note> <simpara> - AAAA ã¿ã¤ãã¯PHP 4.3.0ã§è¿½å ããã¾ããã + AAAA ã¿ã¤ãã¯PHP 5.0.0ã§è¿½å ããã¾ããã </simpara> </note> </para> <para> <note> <simpara> - ãã®é¢æ°ã¯Windowsãã©ãããã©ã¼ã ã§ã¯å®è£ ããã¦ãã¾ããã - <ulink url="&url.php.pear;">PEAR</ulink> ã¯ã©ã¹ã® - <ulink url="&url.pear.net-dns;">Net_DNS</ulink>ã試ãã¦ã¿ã¦ãã ããã + ãã®é¢æ°ã¯ Windows ãã©ãããã©ã¼ã ã§ã¯å®è£ ããã¦ãã¾ããã + <ulink url="&url.php.pear;">PEAR</ulink> ã® + <ulink url="&url.pear.package;Net_DNS">Net_DNS</ulink> ã¯ã©ã¹ã試ãã¦ã¿ã¦ãã ããã </simpara> </note> </para> <simpara> + <function>dns_get_record</function>, <function>getmxrr</function>, <function>gethostbyaddr</function>, <function>gethostbyname</function>, - <function>gethostbynamel</function>ããã³ - named(8)ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã + <function>gethostbynamel</function> ããã³ + named(8) ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/ini.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/ini.xml diff -u phpdoc-ja/reference/network/ini.xml:1.4 phpdoc-ja/reference/network/ini.xml:1.5 --- phpdoc-ja/reference/network/ini.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/ini.xml Mon Jul 25 03:00:52 2005 @@ -1,18 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- CREDITS: takagi --> <section id="network.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>ãããã¯ã¼ã¯è¨å®ãªãã·ã§ã³(Network)</title> - <tgroup cols="3"> + <tgroup cols="4"> <thead> <row> <entry>åå</entry> <entry>ããã©ã«ã</entry> <entry>夿´ã®å¯å¦</entry> + <entry>夿´ã®å±¥æ´</entry> </row> </thead> <tbody> @@ -20,12 +22,12 @@ <entry>define_syslog_variables</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> + <entry></entry> </row> </tbody> </tgroup> </table> - PHP_INI_* 宿°ã®è©³ç´°ã¨å®ç¾©ã«ã¤ãã¦ã¯ã - <function>ini_set</function>ãåç §ãã¦ãã ããã + &ini.php.constants; </para> &ini.descriptions.title; http://cvs.php.net/diff.php/phpdoc-ja/reference/network/constants.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/constants.xml diff -u phpdoc-ja/reference/network/constants.xml:1.3 phpdoc-ja/reference/network/constants.xml:1.4 --- phpdoc-ja/reference/network/constants.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/constants.xml Mon Jul 25 03:00:52 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- CREDITS: takagi --> <section id="network.constants"> &reftitle.constants; &extension.constants.core; @@ -17,8 +18,8 @@ <row> <entry>LOG_CONS</entry> <entry> - ã·ã¹ãã ãã¬ã¼ã«ãã¼ã¿ãéä¿¡ããéã«ã¨ã©ã¼ãçºçããå ´åãã·ã¹ã - ã ã³ã³ã½ã¼ã«ã«ç´æ¥æ¸ãè¾¼ãã + ã·ã¹ãã ãã¬ã¼ã«ãã¼ã¿ãéä¿¡ããéã«ã¨ã©ã¼ãçºçããå ´åã + ã·ã¹ãã ã³ã³ã½ã¼ã«ã«ç´æ¥æ¸ãè¾¼ãã </entry> </row> <row> @@ -30,8 +31,8 @@ <row> <entry>LOG_ODELAY</entry> <entry> - (ããã©ã«ã) æåã®ã¡ãã»ã¼ã¸ãè¨é²ãããã¾ã§æ¥ç¶ã®ãªã¼ãã³ãé - å»¶ãããã + (ããã©ã«ã) æåã®ã¡ãã»ã¼ã¸ãè¨é²ãããã¾ã§æ¥ç¶ã®ãªã¼ãã³ã + é å»¶ãããã </entry> </row> <row> @@ -193,9 +194,9 @@ </row> <row> <entry>DNS_HINFO</entry> - <entry>ãã¹ãæ å ±ãªã½ã¼ã¹ (See IANA's + <entry>ãã¹ãæ å ±ãªã½ã¼ã¹ï¼ãããã®å¤ã®æå³ã«ã¤ãã¦ã¯ãIANA ã® <ulink url="&url.iana.system-names;">Operating System Names</ulink> - for the meaning of these values)</entry> + ãåç §ãã ããï¼</entry> </row> <row> <entry>DNS_SOA</entry>
http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/syslog.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/network/functions/syslog.xml diff -u phpdoc-ja/reference/network/functions/syslog.xml:1.5 phpdoc-ja/reference/network/functions/syslog.xml:1.6 --- phpdoc-ja/reference/network/functions/syslog.xml:1.5 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/syslog.xml Mon Jul 25 03:00:48 2005 @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.9 --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.syslog"> <refnamediv> <refname>syslog</refname> @@ -8,7 +11,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>syslog</methodname> + <type>bool</type><methodname>syslog</methodname> <methodparam><type>int</type><parameter>priority</parameter></methodparam> <methodparam><type>string</type><parameter>message</parameter></methodparam> </methodsynopsis> @@ -86,7 +89,7 @@ // ã¯ã©ã¤ã¢ã³ãã¯æªèªè¨¼! // ãã°ãè¨é²ãã $access = date("Y/m/d H:i:s"); - syslog(LOG_WARNING,"Unauthorized client: $access $REMOTE_ADDR ($HTTP_USER_AGENT)"); + syslog(LOG_WARNING, "Unauthorized client: $access $_SERVER[REMOTE_ADDR] ($_SERVER[HTTP_USER_AGENT])"); } closelog(); http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/socket-set-timeout.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/socket-set-timeout.xml diff -u phpdoc-ja/reference/network/functions/socket-set-timeout.xml:1.4 phpdoc-ja/reference/network/functions/socket-set-timeout.xml:1.5 --- phpdoc-ja/reference/network/functions/socket-set-timeout.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/socket-set-timeout.xml Mon Jul 25 03:00:48 2005 @@ -1,56 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> - <refentry id="function.socket-set-timeout"> - <refnamediv> - <refname>socket_set_timeout</refname> - <refpurpose>ã½ã±ããã®ã¿ã¤ã ã¢ã¦ãæéãè¨å®ãã</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>bool</type><methodname>socket_set_timeout</methodname> - <methodparam><type>int</type><parameter>socket descriptor</parameter></methodparam> - <methodparam><type>int</type><parameter>seconds</parameter></methodparam> - <methodparam><type>int</type><parameter>microseconds</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>seconds</parameter>ããã³ - <parameter>microseconds</parameter>ã®åã¨ãã¦è¡¨ãã - ã¿ã¤ã ã¢ã¦ãã®å¤ã<parameter>socket descriptor</parameter>ã«è¨å® - ãã¾ãã - <example> - <title><function>socket_set_timeout</function>ã®ä¾</title> - <programlisting role="php"> -<![CDATA[ -<?php -$fp = fsockopen("www.php.net", 80); -if(!$fp) { - echo "Unable to open\n"; -} else { - fputs($fp,"GET / HTTP/1.0\n\n"); - $start = time(); - socket_set_timeout($fp, 2); - $res = fread($fp, 2000); - var_dump(socket_get_status($fp)); - fclose($fp); - print $res; -} -?> -]]> - </programlisting> - </example> - </para> - <para> - ãã®é¢æ°ã¯ã以å㯠<function>set_socket_timeout</function>ã¨ã㦠- ã³ã¼ã«ããã¦ãã¾ãããããã®é¢æ°ã使ç¨ãããã¨ã¯æ¨å¥¨ããã¾ããã - </para> - <para> - <function>fsockopen</function>ããã³<function>fopen</function>ã - åç §ãã ããã - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.18 --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> +<refentry id="function.socket-set-timeout"> + <refnamediv> + <refname>socket_set_timeout</refname> + <refpurpose>&Alias; <function>stream_set_timeout</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>stream_set_timeout</function>. + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/socket-set-blocking.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/socket-set-blocking.xml diff -u phpdoc-ja/reference/network/functions/socket-set-blocking.xml:1.3 phpdoc-ja/reference/network/functions/socket-set-blocking.xml:1.4 --- phpdoc-ja/reference/network/functions/socket-set-blocking.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/socket-set-blocking.xml Mon Jul 25 03:00:48 2005 @@ -1,33 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.11 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> - <refentry id="function.socket-set-blocking"> - <refnamediv> - <refname>socket_set_blocking</refname> - <refpurpose>ã½ã±ããã«ããããããã¯éãããã¯ã¢ã¼ãã®è¨å®</refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>int</type><methodname>socket_set_blocking</methodname> - <methodparam><type>int</type><parameter>socket descriptor</parameter></methodparam> - <methodparam><type>int</type><parameter>mode</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>mode</parameter>ã&false;ã®å ´åãæå®ããã½ã±ããè¨è¿°å - ã¯éãããã¯ã¢ã¼ãã«åæãã¾ãã&true;ã®å ´åã«ã¯ããããã¯ã¢ã¼ãã« - åæãã¾ããããã¯ãã½ã±ããããèªã¿è¾¼ã¿ãè¡ã - <function>fgets</function>çã®ã³ã¼ã«ã«å½±é¿ãã¾ãã - éãããã¯ã¢ã¼ãã§ã¯<function>fgets</function>ã¯å¸¸ã«ãã ã¡ã«å¤ã - è¿ãã¾ããããããã¯ã¢ã¼ãã§ã¯ãã¼ã¿ãã½ã±ããä¸ã§åå¾å¯è½ã« - ãªãã¾ã§å¾ ã¡ã¤ã¥ãã¾ãã - </para> - <para> - ãã®é¢æ°ã¯ã以åã¯<function>set_socket_blocking</function>ã¨ã㦠- ã³ã¼ã«ããã¦ãã¾ãããããã®ä½¿ç¨æ³ã¯æ¨å¥¨ããã¦ãã¾ããã - </para> - </refsect1> - </refentry> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> +<refentry id="function.socket-set-blocking"> + <refnamediv> + <refname>socket_set_blocking</refname> + <refpurpose>&Alias; <function>stream_set_blocking</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>stream_set_blocking</function>. + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/socket-get-status.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/socket-get-status.xml diff -u phpdoc-ja/reference/network/functions/socket-get-status.xml:1.4 phpdoc-ja/reference/network/functions/socket-get-status.xml:1.5 --- phpdoc-ja/reference/network/functions/socket-get-status.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/socket-get-status.xml Mon Jul 25 03:00:48 2005 @@ -1,56 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.14 --> -<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> - <refentry id="function.socket-get-status"> - <refnamediv> - <refname>socket_get_status</refname> - <refpurpose> - æ¢åã®ã½ã±ãããªã½ã¼ã¹ã«é¢ããæ å ±ãè¿ã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>array</type><methodname>socket_get_status</methodname> - <methodparam><type>resource</type><parameter>socket_get_status</parameter></methodparam> - </methodsynopsis> - <para> - æ¢åã®ã½ã±ãããªã½ã¼ã¹ã«é¢ããæ å ±ãè¿ãã¾ããç¾å¨ãçµæã®é åã« - ã¯4ã¤ã®ã¨ã³ããªãè¿ããã¾ãã - </para> - <itemizedlist> - <listitem> - <para> - <parameter>timed_out</parameter> (bool) - ãã¼ã¿ã«é¢ããã½ã±ã - ãã¿ã¤ã ã¢ã¦ã - </para> - </listitem> - <listitem> - <para> - <parameter>blocked</parameter> (bool) - ã½ã±ããã¯ãããã¯ããã - </para> - </listitem> - <listitem> - <para> - <parameter>eof</parameter> (bool) - EOF ã¤ãã³ãã示ã - </para> - </listitem> - <listitem> - <para> - <parameter>unread_bytes</parameter> (int) - ã½ã±ãããããã¡ã® - æ®ãã®ãã¤ãæ° - </para> - </listitem> - </itemizedlist> - <para> - <function>accept_connect</function>, - <function>bind</function>, - <function>connect</function>, - <function>listen</function>, - <function>strerror</function>ãåç §ãã ããã - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.24 --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> +<refentry id="function.socket-get-status"> + <refnamediv> + <refname>socket_get_status</refname> + <refpurpose>&Alias; <function>stream_get_meta_data</function></refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <simpara> + &info.function.alias; + <function>stream_get_meta_data</function>. + </simpara> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/pfsockopen.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/network/functions/pfsockopen.xml diff -u phpdoc-ja/reference/network/functions/pfsockopen.xml:1.2 phpdoc-ja/reference/network/functions/pfsockopen.xml:1.3 --- phpdoc-ja/reference/network/functions/pfsockopen.xml:1.2 Tue Sep 10 13:45:41 2002 +++ phpdoc-ja/reference/network/functions/pfsockopen.xml Mon Jul 25 03:00:48 2005 @@ -1,30 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<refentry id="function.pfsockopen"> - <refnamediv> - <refname>pfsockopen</refname> - <refpurpose> - æç¶çãªInternetã¾ãã¯Unixãã¡ã¤ã³ã½ã±ããæ¥ç¶ããªã¼ãã³ãã - </refpurpose> - </refnamediv> - <refsect1> - <title>説æ</title> - <methodsynopsis> - <type>int</type><methodname>pfsockopen</methodname> - <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>int</type><parameter>port</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>errno</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>errstr</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam> - </methodsynopsis> - <para> - ãã®é¢æ°ã¯ã<function>fsockopen</function> ã¨å ¨ãåæ§ã«åä½ãã¾ãã - ãã ãããã®é¢æ°ã«ããæ¥ç¶ã¯ãªã¯ã¨ã¹ããçµäºããå¾ã§ãéããããªã - ã¨ããéããããã¾ãã - ãã®é¢æ°ã¯ã<function>fsockopen</function>ã®æç¶çæ¥ç¶çã§ãã - </para> - </refsect1> -</refentry> +<!-- $Revision: 1.3 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> + <refentry id="function.pfsockopen"> + <refnamediv> + <refname>pfsockopen</refname> + <refpurpose> + æç¶ç㪠Internet ã¾ã㯠Unix ãã¡ã¤ã³ã½ã±ããæ¥ç¶ããªã¼ãã³ãã + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>resource</type><methodname>pfsockopen</methodname> + <methodparam><type>string</type><parameter>hostname</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter role="reference">errno</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter role="reference">errstr</parameter></methodparam> + <methodparam choice="opt"><type>float</type><parameter>timeout</parameter></methodparam> + </methodsynopsis> + <para> + ãã®é¢æ°ã¯ã<function>fsockopen</function> ã¨å ¨ãåæ§ã«åä½ãã¾ãã + ãã ãããã®é¢æ°ã«ããæ¥ç¶ã¯ãªã¯ã¨ã¹ããçµäºããå¾ã§ãéããããªã + ã¨ããéããããã¾ãã + ãã®é¢æ°ã¯ã<function>fsockopen</function> ã®æç¶çæ¥ç¶çã§ãã + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/openlog.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-ja/reference/network/functions/openlog.xml diff -u phpdoc-ja/reference/network/functions/openlog.xml:1.5 phpdoc-ja/reference/network/functions/openlog.xml:1.6 --- phpdoc-ja/reference/network/functions/openlog.xml:1.5 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/openlog.xml Mon Jul 25 03:00:48 2005 @@ -1,5 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.openlog"> <refnamediv> <refname>openlog</refname> @@ -8,7 +10,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>openlog</methodname> + <type>bool</type><methodname>openlog</methodname> <methodparam><type>string</type><parameter>ident</parameter></methodparam> <methodparam><type>int</type><parameter>option</parameter></methodparam> <methodparam><type>int</type><parameter>facility</parameter></methodparam> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/long2ip.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/long2ip.xml diff -u phpdoc-ja/reference/network/functions/long2ip.xml:1.4 phpdoc-ja/reference/network/functions/long2ip.xml:1.5 --- phpdoc-ja/reference/network/functions/long2ip.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/long2ip.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.12 --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.18 --> +<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.long2ip"> <refnamediv> <refname>long2ip</refname> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/ip2long.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/ip2long.xml diff -u phpdoc-ja/reference/network/functions/ip2long.xml:1.4 phpdoc-ja/reference/network/functions/ip2long.xml:1.5 --- phpdoc-ja/reference/network/functions/ip2long.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/ip2long.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- splitted from ./ja/functions/network.xml, last change in rev 1.12 --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./ja/functions/network.xml, last change in rev 1.18 --> +<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.ip2long"> <refnamediv> <refname>ip2long</refname> @@ -16,41 +18,100 @@ <methodparam><type>string</type><parameter>ip_address</parameter></methodparam> </methodsynopsis> <para> - 颿° <function>ip2long</function> ã¯ãã¤ã³ã¿ã¼ãããæ¨æºå½¢å¼(ãã - ã表è¨ã®æåå)表ç¾ããIPv4 ã¤ã³ã¿ã¼ããããããã¢ãã¬ã¹ãçæã - ã¾ãã - <example> - <title><function>ip2long</function>ã®ä¾</title> - <programlisting role="php"> + 颿° <function>ip2long</function> ã¯ãã¤ã³ã¿ã¼ãããæ¨æºå½¢å¼ + ï¼ããã表è¨ã®æååï¼è¡¨ç¾ãã IPv4 ã¤ã³ã¿ã¼ããããããã¢ãã¬ã¹ã + çæãã¾ãã<parameter>ip_address</parameter> ã䏿£ãªå½¢å¼ã®å ´å㯠+ <literal>-1</literal> ãè¿ãã¾ããPHP ã§ã¯ <literal>-1</literal> + 㨠&false; ã¯ç価ã§ã¯ãªããã¨ã«æ³¨æãã¦ãã ããã + </para> + <note> + <para> + PHP 5.0.0 ã§ã¯ã<function>ip2long</function> 㯠+ <parameter>ip_address</parameter> ã䏿£ãªå½¢å¼ã®å ´åã« &false; ãè¿ãã¾ãã + </para> + </note> + <example> + <title><function>ip2long</function> Example</title> + <programlisting role="php"> <![CDATA[ <?php -$ip = gethostbyname("www.php.net"); -$out = "The following URLs are equivalent:<br>\n"; -$out .= "http://www.php.net/, http://".$ip."/, and http://".sprintf("%u",ip2long($ip))."/<br>\n"; +$ip = gethostbyname('www.example.com'); +$out = "以ä¸ã® URL ã¯åãæå³ã§ã:<br />\n"; +$out .= 'http://www.example.com/, http://' . $ip . '/, and http://' . sprintf("%u", ip2long($ip)) . "/<br />\n"; echo $out; ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + <para> + <note> + <para> + PHP ã®æ´æ°åã¯ç¬¦å·ä»ãå½¢å¼ã§ãããå¤ãã® IP ã¢ãã¬ã¹ã¯è² ã®æ´æ°å¤ã« + ãªãã¾ãããã®ããã符å·ãªã IP ã¢ãã¬ã¹ãæååå½¢å¼ã§åå¾ããã«ã¯ + <function>sprintf</function> ã <function>printf</function> ã§ "%u" + ã使ç¨ããå¿ è¦ãããã¾ãã + </para> + </note> </para> <para> - 2çªç®ã®ä¾ã¯ã<function>printf</function> 颿°ã§å¤æãããã¢ãã¬ã¹ - ãåºåããæ¹æ³ã示ããã®ã§ãã - <example> - <title>IPã¢ãã¬ã¹ã®è¡¨ç¤º</title> + 2 çªç®ã®ä¾ã¯ã<function>printf</function> 颿°ã§å¤æãããã¢ãã¬ã¹ã + åºåããæ¹æ³ã示ããã®ã§ããPHP 4 㨠PHP 5 ã®ã©ã¡ãã§ã使ãã¾ãã + </para> + <example> + <title>IP ã¢ãã¬ã¹ã®è¡¨ç¤º</title> <programlisting role="php"> <![CDATA[ <?php -$ip = gethostbyname("www.php.net"); -printf("%u\n", ip2long($ip)); -echo $out; +$ip = gethostbyname('www.example.com'); +$long = ip2long($ip); + +if ($long == -1 || $long === FALSE) { + echo 'Invalid IP, please try again'; +} else { + echo $ip . "\n"; // 192.0.34.166 + echo $long . "\n"; // -1073732954 + printf("%u\n", ip2long($ip)); // 3221234342 +} +?> +]]> + </programlisting> + </example> + <para> + <function>ip2long</function> ããããåä½ã§ IP ã®æ¤è¨¼ã« + å©ç¨ããã¹ãã§ã¯ããã¾ããã<function>long2ip</function> + ã¨çµã¿åããã¦å©ç¨ãã¾ãã + </para> + <example> + <title>IP ã®æ¤è¨¼</title> + <programlisting role="php"> +<![CDATA[ +<?php +// IP ãæå¹ã§ãããã¨ã確èªãã¾ããã¾ããä¸å®å ¨ãªå½¢å¼ã® IP ã +// 以ä¸ã§ç¤ºããããªæ£ããå½¢å¼ï¼ãããã§ 4 ã¤ã«åºåããã¦ããï¼ã«å¤æãã¾ãã +$ip = long2ip(ip2long("127.0.0.1")); // "127.0.0.1" +$ip = long2ip(ip2long("10.0.0")); // "10.0.0.0" +$ip = long2ip(ip2long("10.0.256")); // "10.0.1.0" ?> ]]> </programlisting> - </example> + </example> + <para> + <function>ip2long</function> ã¯ä¸å®å ¨ãªå½¢å¼ã® IP ã¢ãã¬ã¹ã«å¯¾ãã¦ã + åä½ãã¾ãã詳ããæ å ±ã¯ + <ulink url="&url.ip2long.tech;">&url.ip2long.tech;</ulink> + ãåç §ãã ããã </para> + <note> + <para> + PHP 5 <= 5.0.2 ã§ã¯ãIP <literal>255.255.255.255</literal> + ã«å¯¾ã㦠<function>ip2long</function> ã &false; ãè¿ãã¾ãã + ãã㯠PHP 5.0.3 ã§ <literal>-1</literal> ãè¿ãããã«ä¿®æ£ããã¦ãã¾ã + ï¼PHP 4 ã¨åãåä½ã§ãï¼ã + </para> + </note> <para> - <function>long2ip</function>ãåç §ãã ããã + <function>long2ip</function> + ããã³ <function>sprintf</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/getservbyname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/getservbyname.xml diff -u phpdoc-ja/reference/network/functions/getservbyname.xml:1.4 phpdoc-ja/reference/network/functions/getservbyname.xml:1.5 --- phpdoc-ja/reference/network/functions/getservbyname.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/getservbyname.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.getservbyname"> <refnamediv> <refname>getservbyname</refname> @@ -16,15 +18,38 @@ <methodparam><type>string</type><parameter>protocol</parameter></methodparam> </methodsynopsis> <para> - <function>getservbyname</function>ã¯ã/etc/servicesã«åºã¥ã - æå®ãããããã³ã«<parameter>protocol</parameter>ã«é¢ã㦠- <parameter>service</parameter>ã«å¯¾å¿ããã¤ã³ã¿ã¼ããããã¼ãã + <function>getservbyname</function> ã¯ã/etc/services ã«åºã¥ã + æå®ãããããã³ã« <parameter>protocol</parameter> ã«é¢ã㦠+ <parameter>service</parameter> ã«å¯¾å¿ããã¤ã³ã¿ã¼ããããã¼ãã è¿ãã¾ãã - <parameter>protocol</parameter>ã¯ã<literal>TCP</literal>ã¾ã㯠- <literal>UDP</literal>ã§ããå¿ è¦ãããã¾ãã + <parameter>protocol</parameter> ã¯ã<literal>"tcp"</literal>ï¼å°æåï¼ + ã¾ã㯠<literal>"udp"</literal>ï¼å°æåï¼ã§ããå¿ è¦ãããã¾ãã + <parameter>service</parameter> ããã㯠<parameter>protocol</parameter> + ãè¦ã¤ãããªãã£ãå ´å㯠&false; ãè¿ãã¾ãã </para> <para> - <function>getservbyport</function>ãåç §ãã ããã + <example> + <title><function>getservbyname</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$services = array('http', 'ftp', 'ssh', 'telnet', 'imap', +'smtp', 'nicname', 'gopher', 'finger', 'pop3', 'www'); + +foreach ($services as $service) { + $port = getservbyname($service, 'tcp'); + echo $service . ": " . $port . "<br />\n"; +} +?> +]]> + </programlisting> + </example> + </para> + <para> + ãã¼ãçªå·ã®å®å ¨ãªãªã¹ã㯠&url.network.port-numbers; ãåç §ãã ããã + </para> + <para> + <function>getservbyport</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/getprotobyname.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/getprotobyname.xml diff -u phpdoc-ja/reference/network/functions/getprotobyname.xml:1.4 phpdoc-ja/reference/network/functions/getprotobyname.xml:1.5 --- phpdoc-ja/reference/network/functions/getprotobyname.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/getprotobyname.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.getprotobyname"> <refnamediv> <refname>getprotobyname</refname> @@ -20,6 +22,25 @@ åå¾ãã¦è¿ãã¾ãã </para> <para> + <example> + <title><function>getprotobyname</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$protocol = 'tcp'; +$get_prot = getprotobyname($protocol); +if ($get_prot == -1) { + // ä½ãè¦ã¤ãããªããã° -1 ãè¿ãã¾ãã + echo 'Invalid Protocol'; +} else { + echo 'Protocol #' . $get_prot; +} +?> +]]> + </programlisting> + </example> + </para> + <para> <function>getprotobynumber</function>ãåç §ãã ããã </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/getmxrr.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/getmxrr.xml diff -u phpdoc-ja/reference/network/functions/getmxrr.xml:1.4 phpdoc-ja/reference/network/functions/getmxrr.xml:1.5 --- phpdoc-ja/reference/network/functions/getmxrr.xml:1.4 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/getmxrr.xml Mon Jul 25 03:00:49 2005 @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.getmxrr"> <refnamediv> <refname>getmxrr</refname> @@ -10,10 +13,10 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>getmxrr</methodname> + <type>bool</type><methodname>getmxrr</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>array</type><parameter>mxhosts</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>weight</parameter></methodparam> + <methodparam><type>array</type><parameter role="reference">mxhosts</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">weight</parameter></methodparam> </methodsynopsis> <simpara> <parameter>hostname</parameter>ã«å¯¾å¿ããMXã¬ã³ã¼ããDNSããæ¢ãã¾ãã @@ -42,17 +45,18 @@ <note> <simpara> ãã®é¢æ°ã¯Windowsã§ã¯å®è£ ããã¦ãã¾ããã - <ulink url="&url.php.pear;">PEAR</ulink> classã® - <ulink url="&url.pear.net-dns;">Net_DNS</ulink>. + <ulink url="&url.php.pear;">PEAR</ulink> ã® + <ulink url="&url.pear.package;Net_DNS">Net_DNS</ulink> ã¯ã©ã¹ã試ãã¦ã¿ã¦ãã ããã </simpara> </note> </para> <simpara> <function>checkdnsrr</function>, + <function>dns_get_record</function>, <function>gethostbyname</function>, <function>gethostbynamel</function>, - <function>gethostbyaddr</function>ããã³ - named(8)ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã + <function>gethostbyaddr</function> ããã³ + named(8) ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/gethostbynamel.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/gethostbynamel.xml diff -u phpdoc-ja/reference/network/functions/gethostbynamel.xml:1.3 phpdoc-ja/reference/network/functions/gethostbynamel.xml:1.4 --- phpdoc-ja/reference/network/functions/gethostbynamel.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/gethostbynamel.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.gethostbynamel"> <refnamediv> <refname>gethostbynamel</refname> @@ -17,14 +19,38 @@ </methodsynopsis> <para> <parameter>hostname</parameter>ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã - æ¤ç´¢ãã¦å¾ããã IPã¢ãã¬ã¹ã®ãªã¹ããè¿ãã¾ãã + æ¤ç´¢ãã¦å¾ããã IP ã¢ãã¬ã¹ã®ãªã¹ããè¿ãã¾ãã + ãã <parameter>hostname</parameter> ã解決ã§ããªãã£ãå ´å㯠+ &false; ãè¿ãã¾ãã </para> + <example> + <title><function>gethostbynamel</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php + $hosts = gethostbynamel('www.example.com'); + print_r($hosts); +?> +]]> + </programlisting> + <para> + ä¸ã®ä¾ã®åºåã¯ä¾ãã°ä»¥ä¸ã®ããã«ãªãã¾ã: + </para> + <screen> +<![CDATA[ +Array +( + [0] => 192.0.34.166 +) +]]> + </screen> + </example> <para> <function>gethostbyname</function>, <function>gethostbyaddr</function>, <function>checkdnsrr</function>, - <function>getmxrr</function>ããã³ - named(8)ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã + <function>getmxrr</function> ããã³ + named(8) ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/gethostbyname.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/gethostbyname.xml diff -u phpdoc-ja/reference/network/functions/gethostbyname.xml:1.3 phpdoc-ja/reference/network/functions/gethostbyname.xml:1.4 --- phpdoc-ja/reference/network/functions/gethostbyname.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/gethostbyname.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.gethostbyname"> <refnamediv> <refname>gethostbyname</refname> @@ -15,11 +17,27 @@ <methodparam><type>string</type><parameter>hostname</parameter></methodparam> </methodsynopsis> <para> - <parameter>hostname</parameter>ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã® - IPã¢ãã¬ã¹ãè¿ãã¾ãã + <parameter>hostname</parameter> ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã® + IP ã¢ãã¬ã¹ãè¿ãã¾ãã失æããå ´åã¯ããã®ã¾ã¾ã®å½¢ã® + <parameter>hostname</parameter> ãæååã§è¿ãã¾ãã </para> <para> - <function>gethostbyaddr</function>ãåèã«ãã¦ãã ããã + <example> + <title>åç´ãª <function>gethostbyname</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$ip = gethostbyname('www.example.com'); + +echo $ip; +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>gethostbyaddr</function> + ããã³ <function>gethostbynamel</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/gethostbyaddr.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/functions/gethostbyaddr.xml diff -u phpdoc-ja/reference/network/functions/gethostbyaddr.xml:1.3 phpdoc-ja/reference/network/functions/gethostbyaddr.xml:1.4 --- phpdoc-ja/reference/network/functions/gethostbyaddr.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/gethostbyaddr.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.gethostbyaddr"> <refnamediv> <refname>gethostbyaddr</refname> @@ -16,11 +18,26 @@ </methodsynopsis> <para> <parameter>ip_address</parameter>ã§æå®ããã¤ã³ã¿ã¼ããããã¹ãã® - ãã¹ãåãè¿ãã¾ããã¨ã©ã¼ãçºçããå ´åã - <parameter>ip_address</parameter>ãè¿ãã¾ãã + ãã¹ãåãè¿ãã¾ãã失æããå ´åã¯ããã®ã¾ã¾ã®å½¢ã® + <parameter>ip_address</parameter> ãæååã§è¿ãã¾ãã </para> <para> - <function>gethostbyname</function>ãåèã«ãã¦ãã ããã + <example> + <title>åç´ãª <function>gethostbyaddr</function> ã®ä¾</title> + <programlisting role="php"> +<![CDATA[ +<?php +$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); + +echo $hostname; +?> +]]> + </programlisting> + </example> + </para> + <para> + <function>gethostbyname</function> + ããã³ <function>gethostbynamel</function> ãåç §ãã ããã </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/fsockopen.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/fsockopen.xml diff -u phpdoc-ja/reference/network/functions/fsockopen.xml:1.4 phpdoc-ja/reference/network/functions/fsockopen.xml:1.5 --- phpdoc-ja/reference/network/functions/fsockopen.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/fsockopen.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.fsockopen"> <refnamediv> @@ -14,9 +15,9 @@ <methodsynopsis> <type>resource</type><methodname>fsockopen</methodname> <methodparam><type>string</type><parameter>target</parameter></methodparam> - <methodparam><type>int</type><parameter>port</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>&errno</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>&errstr</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>port</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter role="reference">errno</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter role="reference">errstr</parameter></methodparam> <methodparam choice="opt"><type>float</type><parameter>timeout</parameter></methodparam> </methodsynopsis> <para> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/dns-get-mx.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/network/functions/dns-get-mx.xml diff -u phpdoc-ja/reference/network/functions/dns-get-mx.xml:1.2 phpdoc-ja/reference/network/functions/dns-get-mx.xml:1.3 --- phpdoc-ja/reference/network/functions/dns-get-mx.xml:1.2 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/dns-get-mx.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- CREDITS: takagi --> <refentry id="function.dns-get-mx"> <refnamediv> <refname>dns_get_mx</refname> @@ -9,10 +10,10 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>dns_get_mx</methodname> + <type>bool</type><methodname>dns_get_mx</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> - <methodparam><type>array</type><parameter>mxhosts</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>&weight</parameter></methodparam> + <methodparam><type>array</type><parameter role="reference">mxhosts</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">weight</parameter></methodparam> </methodsynopsis> <para> æå®ããã¤ã³ã¿ã¼ããããã¹ãåã«å¯¾å¿ããMXã¬ã³ã¼ããåå¾ãã http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/dns-check-record.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/network/functions/dns-check-record.xml diff -u phpdoc-ja/reference/network/functions/dns-check-record.xml:1.2 phpdoc-ja/reference/network/functions/dns-check-record.xml:1.3 --- phpdoc-ja/reference/network/functions/dns-check-record.xml:1.2 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/dns-check-record.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.1 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- CREDITS: takagi --> <refentry id="function.dns-check-record"> <refnamediv> <refname>dns_check_record</refname> @@ -9,7 +10,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>dns_check_record</methodname> + <type>bool</type><methodname>dns_check_record</methodname> <methodparam><type>string</type><parameter>host</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam> </methodsynopsis> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/closelog.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/closelog.xml diff -u phpdoc-ja/reference/network/functions/closelog.xml:1.4 phpdoc-ja/reference/network/functions/closelog.xml:1.5 --- phpdoc-ja/reference/network/functions/closelog.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/functions/closelog.xml Mon Jul 25 03:00:49 2005 @@ -1,6 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./ja/functions/network.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.closelog"> <refnamediv> <refname>closelog</refname> @@ -9,7 +11,7 @@ <refsect1> <title>説æ</title> <methodsynopsis> - <type>int</type><methodname>closelog</methodname> + <type>bool</type><methodname>closelog</methodname> <void/> </methodsynopsis> <para> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/functions/checkdnsrr.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/functions/checkdnsrr.xml diff -u phpdoc-ja/reference/network/functions/checkdnsrr.xml:1.4 phpdoc-ja/reference/network/functions/checkdnsrr.xml:1.5 --- phpdoc-ja/reference/network/functions/checkdnsrr.xml:1.4 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/functions/checkdnsrr.xml Mon Jul 25 03:00:49 2005 @@ -1,12 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> +<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- CREDITS: takagi --> <refentry id="function.checkdnsrr"> <refnamediv> <refname>checkdnsrr</refname> <refpurpose> - æå®ããã¤ã³ã¿ã¼ããããã¹ãåãããã¯IPã¢ãã¬ã¹ã«å¯¾å¿ããDNSã¬ã³ã¼ - ããæ¤ç´¢ãã + æå®ããã¤ã³ã¿ã¼ããããã¹ãåããã㯠IP ã¢ãã¬ã¹ã«å¯¾å¿ãã DNS + ã¬ã³ã¼ããæ¤ç´¢ãã </refpurpose> </refnamediv> <refsect1> @@ -17,40 +19,41 @@ <methodparam choice="opt"><type>string</type><parameter>type</parameter></methodparam> </methodsynopsis> <simpara> - <parameter>host</parameter>ã«å¯¾å¿ãã<parameter>type</parameter> - åã®ã¬ã³ã¼ããDNSããæ¢ãã¾ããã¬ã³ã¼ããè¦ã¤ãã£ãå ´åã«&true;ã - ä½ãè¦ã¤ãããªããã¨ã©ã¼ãçºçããå ´åã«&false;ãè¿ãã¾ãã + <parameter>host</parameter> ã«å¯¾å¿ãã <parameter>type</parameter> + åã®ã¬ã³ã¼ãã DNS ããæ¢ãã¾ããã¬ã³ã¼ããè¦ã¤ãã£ãå ´åã« &true;ã + ä½ãè¦ã¤ãããªããã¨ã©ã¼ãçºçããå ´åã« &false; ãè¿ãã¾ãã </simpara> <simpara> - <parameter>type</parameter>ã¯ãA,MX,NS,SOA,PTR,CNAME,AAAA,ANYã®ã©ãã - ä¸ã¤ã§ããããã©ã«ãã¯MXã§ãã + <parameter>type</parameter>ã¯ãA, MX, NS, SOA, PTR, CNAME, AAAA, A6, + SRV, NAPTR, ANY ã®ã©ããä¸ã¤ã§ããããã©ã«ã㯠MX ã§ãã </simpara> <simpara> - <parameter>host</parameter>ã¯ã4ã¤ã®ããããç¨ãã表è¨ã® - IPã¢ãã¬ã¹ãããã¯ãã¹ãåã§ãã + <parameter>host</parameter>ã¯ã4 ã¤ã®ããããç¨ãã表è¨ã® + IP ã¢ãã¬ã¹ãããã¯ãã¹ãåã§ãã </simpara> <para> <note> <simpara> - AAAA ã¿ã¤ãã¯PHP 4.3.0ã§è¿½å ããã¾ããã + AAAA ã¿ã¤ãã¯PHP 5.0.0ã§è¿½å ããã¾ããã </simpara> </note> </para> <para> <note> <simpara> - ãã®é¢æ°ã¯Windowsãã©ãããã©ã¼ã ã§ã¯å®è£ ããã¦ãã¾ããã - <ulink url="&url.php.pear;">PEAR</ulink> ã¯ã©ã¹ã® - <ulink url="&url.pear.net-dns;">Net_DNS</ulink>ã試ãã¦ã¿ã¦ãã ããã + ãã®é¢æ°ã¯ Windows ãã©ãããã©ã¼ã ã§ã¯å®è£ ããã¦ãã¾ããã + <ulink url="&url.php.pear;">PEAR</ulink> ã® + <ulink url="&url.pear.package;Net_DNS">Net_DNS</ulink> ã¯ã©ã¹ã試ãã¦ã¿ã¦ãã ããã </simpara> </note> </para> <simpara> + <function>dns_get_record</function>, <function>getmxrr</function>, <function>gethostbyaddr</function>, <function>gethostbyname</function>, - <function>gethostbynamel</function>ããã³ - named(8)ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã + <function>gethostbynamel</function> ããã³ + named(8) ããã¥ã¢ã«ãã¼ã¸ãåèã«ãã¦ãã ããã </simpara> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-ja/reference/network/ini.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/network/ini.xml diff -u phpdoc-ja/reference/network/ini.xml:1.4 phpdoc-ja/reference/network/ini.xml:1.5 --- phpdoc-ja/reference/network/ini.xml:1.4 Sun Jan 2 02:23:39 2005 +++ phpdoc-ja/reference/network/ini.xml Mon Jul 25 03:00:52 2005 @@ -1,18 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- CREDITS: takagi --> <section id="network.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>ãããã¯ã¼ã¯è¨å®ãªãã·ã§ã³(Network)</title> - <tgroup cols="3"> + <tgroup cols="4"> <thead> <row> <entry>åå</entry> <entry>ããã©ã«ã</entry> <entry>夿´ã®å¯å¦</entry> + <entry>夿´ã®å±¥æ´</entry> </row> </thead> <tbody> @@ -20,12 +22,12 @@ <entry>define_syslog_variables</entry> <entry>"0"</entry> <entry>PHP_INI_ALL</entry> + <entry></entry> </row> </tbody> </tgroup> </table> - PHP_INI_* 宿°ã®è©³ç´°ã¨å®ç¾©ã«ã¤ãã¦ã¯ã - <function>ini_set</function>ãåç §ãã¦ãã ããã + &ini.php.constants; </para> &ini.descriptions.title; http://cvs.php.net/diff.php/phpdoc-ja/reference/network/constants.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-ja/reference/network/constants.xml diff -u phpdoc-ja/reference/network/constants.xml:1.3 phpdoc-ja/reference/network/constants.xml:1.4 --- phpdoc-ja/reference/network/constants.xml:1.3 Mon Nov 22 23:45:42 2004 +++ phpdoc-ja/reference/network/constants.xml Mon Jul 25 03:00:52 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> -<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- CREDITS: takagi --> <section id="network.constants"> &reftitle.constants; &extension.constants.core; @@ -17,8 +18,8 @@ <row> <entry>LOG_CONS</entry> <entry> - ã·ã¹ãã ãã¬ã¼ã«ãã¼ã¿ãéä¿¡ããéã«ã¨ã©ã¼ãçºçããå ´åãã·ã¹ã - ã ã³ã³ã½ã¼ã«ã«ç´æ¥æ¸ãè¾¼ãã + ã·ã¹ãã ãã¬ã¼ã«ãã¼ã¿ãéä¿¡ããéã«ã¨ã©ã¼ãçºçããå ´åã + ã·ã¹ãã ã³ã³ã½ã¼ã«ã«ç´æ¥æ¸ãè¾¼ãã </entry> </row> <row> @@ -30,8 +31,8 @@ <row> <entry>LOG_ODELAY</entry> <entry> - (ããã©ã«ã) æåã®ã¡ãã»ã¼ã¸ãè¨é²ãããã¾ã§æ¥ç¶ã®ãªã¼ãã³ãé - å»¶ãããã + (ããã©ã«ã) æåã®ã¡ãã»ã¼ã¸ãè¨é²ãããã¾ã§æ¥ç¶ã®ãªã¼ãã³ã + é å»¶ãããã </entry> </row> <row> @@ -193,9 +194,9 @@ </row> <row> <entry>DNS_HINFO</entry> - <entry>ãã¹ãæ å ±ãªã½ã¼ã¹ (See IANA's + <entry>ãã¹ãæ å ±ãªã½ã¼ã¹ï¼ãããã®å¤ã®æå³ã«ã¤ãã¦ã¯ãIANA ã® <ulink url="&url.iana.system-names;">Operating System Names</ulink> - for the meaning of these values)</entry> + ãåç §ãã ããï¼</entry> </row> <row> <entry>DNS_SOA</entry>