cvs: peardoc /ja/package/mail/mail-queue/mail-queue tutorial.xml /ja/package/networking/net-ipv4 atoh.xml calculate.xml htoa.xml ip2double.xml
ipinnetwork.xml parseaddress.xml validateip.xml validatenetmask.xml

From: Date: Sun, 18 Dec 2005 07:15:39 +0000
Subject: cvs: peardoc /ja/package/mail/mail-queue/mail-queue tutorial.xml /ja/package/networking/net-ipv4 atoh.xml calculate.xml htoa.xml ip2double.xml
ipinnetwork.xml parseaddress.xml validateip.xml validatenetmask.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7339@lists.php.net to get a copy of this message
shimooka Sun Dec 18 07:15:39 2005 EDT Modified files: /peardoc/ja/package/mail/mail-queue/mail-queue tutorial.xml /peardoc/ja/package/networking/net-ipv4 atoh.xml calculate.xml htoa.xml ip2double.xml ipinnetwork.xml parseaddress.xml validateip.xml validatenetmask.xml Log: sync with en

http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/mail/mail-queue/mail-queue/tutorial.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/ja/package/mail/mail-queue/mail-queue/tutorial.xml diff -u peardoc/ja/package/mail/mail-queue/mail-queue/tutorial.xml:1.5 peardoc/ja/package/mail/mail-queue/mail-queue/tutorial.xml:1.6 --- peardoc/ja/package/mail/mail-queue/mail-queue/tutorial.xml:1.5 Sun Oct 23 16:16:53 2005 +++ peardoc/ja/package/mail/mail-queue/mail-queue/tutorial.xml Sun Dec 18 07:15:38 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.10 Maintainer: shimooka Status: ready --> <refentry id="package.mail.mail-queue.mail-queue.tutorial"> <refnamediv> @@ -32,7 +32,7 @@ id_user bigint(20) NOT NULL default '0', ip varchar(20) NOT NULL default 'unknown', sender varchar(50) NOT NULL default '', - recipient varchar(50) NOT NULL default '', + recipient text NOT NULL, headers text NOT NULL, body longtext NOT NULL, try_sent tinyint(4) NOT NULL default '0', http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/atoh.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/atoh.xml diff -u peardoc/ja/package/networking/net-ipv4/atoh.xml:1.1 peardoc/ja/package/networking/net-ipv4/atoh.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/atoh.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/atoh.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.atoh"> <refnamediv> <refname>Net_IPv4::atoh()</refname> @@ -9,10 +9,10 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once('Net/IPv4.php'); + require_once 'Net/IPv4.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>string <function>atoh</function></funcdef> + <funcdef>mixed <function>atoh</function></funcdef> <paramdef>string <parameter>$addr</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -22,6 +22,7 @@ <para> ドット区切りに整形されたIPアドレスを16進数文字列に変換します。 たとえば、&quot;192.168.1.0&quot; を &quot;c0a80100&quot; に変換します。 + 与えられた文字列が有効な IP アドレスでない場合、&false; を返します。 </para> </refsect1> <refsect1 id="package.networking.net-ipv4.atoh.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/calculate.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/calculate.xml diff -u peardoc/ja/package/networking/net-ipv4/calculate.xml:1.1 peardoc/ja/package/networking/net-ipv4/calculate.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/calculate.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/calculate.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.calculate"> <refnamediv> <refname>Net_IPv4::calculate()</refname> @@ -9,7 +9,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once('Net/IPv4.php'); + require_once 'Net/IPv4.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>calculate</function></funcdef> @@ -36,13 +36,13 @@ <![CDATA[ <?php -require('Net/IPv4.php'); +require 'Net/IPv4.php'; // create IPv4 object $ip_calc = new Net_IPv4(); // set variables -$ip_calc->ip = "a192.168.1.10"; +$ip_calc->ip = "192.168.1.10"; $ip_calc->netmask = "255.255.255.0"; /* alternative method with numerical values: http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/htoa.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/htoa.xml diff -u peardoc/ja/package/networking/net-ipv4/htoa.xml:1.2 peardoc/ja/package/networking/net-ipv4/htoa.xml:1.3 --- peardoc/ja/package/networking/net-ipv4/htoa.xml:1.2 Sat Sep 24 17:22:01 2005 +++ peardoc/ja/package/networking/net-ipv4/htoa.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.htoa"> <refnamediv> <refname>Net_IPv4::htoa()</refname> @@ -9,10 +9,10 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once('Net/IPv4.php'); + require_once 'Net/IPv4.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>string <function>htoa</function></funcdef> + <funcdef>mixed <function>htoa</function></funcdef> <paramdef>string <parameter>$addr</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -22,6 +22,7 @@ <para> 16進数文字列をドット区切りに整形された IP アドレスに変換します。 たとえば、&quot;c0a80100&quot; を &quot;192.168.1.0&quot; に変換します。 + 与えられた文字列が有効な IP アドレスでない場合、&false; を返します。 </para> </refsect1> <refsect1 id="package.networking.net-ipv4.htoa.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/ip2double.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/ip2double.xml diff -u peardoc/ja/package/networking/net-ipv4/ip2double.xml:1.1 peardoc/ja/package/networking/net-ipv4/ip2double.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/ip2double.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/ip2double.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.ip2double"> <refnamediv> <refname>Net_IPv4::ip2double()</refname> @@ -9,10 +9,10 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once('Net/IPv4.php'); + require_once 'Net/IPv4.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>string <function>ip2double</function></funcdef> + <funcdef>float <function>ip2double</function></funcdef> <paramdef>string <parameter>$ip_addr</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -21,7 +21,9 @@ &title.desc; <para> IP アドレスを PHP の倍精度数に変換します。 - 倍精度数は、ip2long 関数から返される整数と対照的に符号がないため、 + たとえば、&quot;192.168.1.0&quot; は &quot;3232235776&quot; に変換されます。 + 倍精度数は、PHP の <function>long2ip</function> + 関数から返される整数と対照的に符号がないため、 ユーザーに表示する場合はより違和感がないでしょう。 </para> </refsect1> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/ipinnetwork.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/ipinnetwork.xml diff -u peardoc/ja/package/networking/net-ipv4/ipinnetwork.xml:1.1 peardoc/ja/package/networking/net-ipv4/ipinnetwork.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/ipinnetwork.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/ipinnetwork.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.ipinnetwork"> <refnamediv> <refname>Net_IPv4::ipInNetwork()</refname> @@ -26,7 +26,31 @@ <refsect1 id="package.networking.net-ipv4.ipinnetwork.desc"> &title.desc; <para> - 与えられた IP が与えられたネットワーク内にあるかどうかを決定します。 + 与えられた IP が与えられたネットワーク内にあるかどうかを判定します。 + </para> + </refsect1> + + <refsect1 id="package.networking.net-ipv4.ipinnetwork.example"> + &title.example; + <para> + <example> + <title>IP アドレスがネットワークに含まれるかどうかチェックする</title> + <programlisting role="php"> +<![CDATA[ +<?php + +require 'Net/IPv4.php'; + +$ip = '10.11.12.13'; +$net1 = '10.0.0.1/8'; +$net2 = '127.0.0.1/8'; + +echo Net_IPv4::ipInNetwork($ip, $net1) // bool(true) +echo Net_IPv4::ipInNetwork($ip, $net2) // bool(false) +?> +]]> + </programlisting> + </example> </para> </refsect1> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/parseaddress.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/parseaddress.xml diff -u peardoc/ja/package/networking/net-ipv4/parseaddress.xml:1.1 peardoc/ja/package/networking/net-ipv4/parseaddress.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/parseaddress.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/parseaddress.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.parseaddress"> <refnamediv> <refname>Net_IPv4::parseAddress()</refname> @@ -29,7 +29,7 @@ &title.example; <para> <example> - <title>How to get netmask and broadcast from CIDR address</title> + <title>CIDR アドレスからネットマスクとブロードキャストの取得方法</title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/validateip.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/validateip.xml diff -u peardoc/ja/package/networking/net-ipv4/validateip.xml:1.1 peardoc/ja/package/networking/net-ipv4/validateip.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/validateip.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/validateip.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.validateip"> <refnamediv> <refname>Net_IPv4::validateIP()</refname> @@ -9,7 +9,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once('Net/IPv4.php'); + require_once 'Net/IPv4.php'; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>validateIP</function></funcdef> @@ -20,8 +20,8 @@ <refsect1 id="package.networking.net-ipv4.validateip.desc"> &title.desc; <para> - IP アドレスの書式を検証します。アドレスが有効な場合、true を返し、 - そうでなければ false を返します。 + IP アドレスの形式ががドット区切りであるか検証します。 + アドレスが有効な場合、true を返し、そうでなければ false を返します。 </para> </refsect1> <refsect1 id="package.networking.net-ipv4.validateip.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/networking/net-ipv4/validatenetmask.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/networking/net-ipv4/validatenetmask.xml diff -u peardoc/ja/package/networking/net-ipv4/validatenetmask.xml:1.1 peardoc/ja/package/networking/net-ipv4/validatenetmask.xml:1.2 --- peardoc/ja/package/networking/net-ipv4/validatenetmask.xml:1.1 Mon Oct 18 02:24:36 2004 +++ peardoc/ja/package/networking/net-ipv4/validatenetmask.xml Sun Dec 18 07:15:39 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.networking.net-ipv4.validatenetmask"> <refnamediv> <refname>Net_IPv4::validateNetmask()</refname> @@ -9,7 +9,7 @@ <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> - require_once('Net/IPv4.php'); + require_once 'Net/IPv4.php'; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>validateNetmask</function></funcdef>
« previous php.pear.doc (#7339) next »