svn: /phpdoc/zh/trunk/reference/network/functions/ gethostbyaddr.xml

From: Date: Thu, 03 Apr 2014 02:23:09 +0000
Subject: svn: /phpdoc/zh/trunk/reference/network/functions/ gethostbyaddr.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-4139@lists.php.net to get a copy of this message
daijie Thu, 03 Apr 2014 02:23:09 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333253 Log: gethostbyaddr 中文翻译 -- Provided by anonymous 29228 (zhoumengkang@gmail.com) Changed paths: A phpdoc/zh/trunk/reference/network/functions/gethostbyaddr.xml Added: phpdoc/zh/trunk/reference/network/functions/gethostbyaddr.xml =================================================================== --- phpdoc/zh/trunk/reference/network/functions/gethostbyaddr.xml (rev 0) +++ phpdoc/zh/trunk/reference/network/functions/gethostbyaddr.xml 2014-04-03 02:23:09 UTC (rev 333253) @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 322545 Maintainer: 周梦康 Status: ready --> +<refentry xml:id="function.gethostbyaddr" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>gethostbyaddr</refname> + <refpurpose> + 获取指定的IP地址对应的主机名 + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>gethostbyaddr</methodname> + <methodparam><type>string</type><parameter>ip_address</parameter></methodparam> + </methodsynopsis> + <para> + 返回指定的IP地址(<parameter>ip_address</parameter>)对应的主机名。 + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>ip_address</parameter></term> + <listitem> + <para> + 主机的IP地址。 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 成功则返回主机名;失败则原样输出(输出IP地址);如果输入的格式不正常,则返回&false;。 + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>一个使用 <function>gethostbyaddr</function> 的简单例子</title> + <programlisting role="php"> +<![CDATA[ +<?php +$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); + +echo $hostname; +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>gethostbyname</function></member> + <member><function>gethostbynamel</function></member> + </simplelist> + </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:"~/.phpdoc/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 +--> \ No newline at end of file Property changes on: phpdoc/zh/trunk/reference/network/functions/gethostbyaddr.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native

« previous php.doc.zh (#4139) next »