cvs: phpdoc-ja /reference/network/functions inet-ntop.xml inet-pton.xml

From: Date: Mon, 25 Jul 2005 07:02:25 +0000
Subject: cvs: phpdoc-ja /reference/network/functions inet-ntop.xml inet-pton.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1086@lists.php.net to get a copy of this message
takagi Mon Jul 25 03:02:25 2005 EDT Added files: /phpdoc-ja/reference/network/functions inet-pton.xml inet-ntop.xml Log: add japanese manual. http://cvs.php.net/co.php/phpdoc-ja/reference/network/functions/inet-pton.xml?r=1.1&p=1 Index: phpdoc-ja/reference/network/functions/inet-pton.xml +++ phpdoc-ja/reference/network/functions/inet-pton.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="function.inet-pton"> <refnamediv> <refname>inet_pton</refname> <refpurpose> 人間が読める形式の IP アドレスを、パックされた形式に変換する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>inet_pton</methodname> <methodparam><type>string</type><parameter>address</parameter></methodparam> </methodsynopsis> <simpara> この関数は、人間が読める形式の IPv4 あるいは IPv6 (PHP が IPv6 サポートを有効にしてビルドされている場合)のアドレスを 32 ビットあるいは 128 ビットのバイナリ形式に変換します。 </simpara> <example> <title><function>inet_pton</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $in_addr = inet_pton('127.0.0.1'); $in6_addr = inet_pton('::1'); ?> ]]> </programlisting> </example> &note.no-windows; <para> <function>ip2long</function>、 <function>inet_ntop</function>、 および <function>long2ip</function> も参照ください。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-ja/reference/network/functions/inet-ntop.xml?r=1.1&p=1 Index: phpdoc-ja/reference/network/functions/inet-ntop.xml +++ phpdoc-ja/reference/network/functions/inet-ntop.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> <refentry id="function.inet-ntop"> <refnamediv> <refname>inet_ntop</refname> <refpurpose> パックされたインターネットアドレスを、人間が読める形式に変換する </refpurpose> </refnamediv> <refsect1> <title>説明</title> <methodsynopsis> <type>string</type><methodname>inet_ntop</methodname> <methodparam><type>string</type><parameter>in_addr</parameter></methodparam> </methodsynopsis> <simpara> この関数は 32 ビット IPv4 形式あるいは 128 ビット IPv6 形式 (PHP が IPv6 サポートを有効にしてビルドされている場合)のアドレスを 文字列表現のアドレスに変換します。失敗した場合は &false; を返します。 </simpara> <example> <title><function>inet_ntop</function> の例</title> <programlisting role="php"> <![CDATA[ <?php $packed = chr(127) . chr(0) . chr(0) . chr(1); $expanded = inet_ntop($packed); /* Outputs: 127.0.0.1 */ echo $expanded; $packed = str_repeat(chr(0), 15) . chr(1); $expanded = inet_ntop($packed); /* Outputs: ::1 */ echo $expanded; ?> ]]> </programlisting> </example> &note.no-windows; <para> <function>long2ip</function>、 <function>inet_pton</function>、 および <function>ip2long</function> も参照ください。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.ja (#1086) next »