git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@116449 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2003-02-15 01:05:22 +00:00
parent 0c0b51b7a2
commit 97ff4b72e1
2 changed files with 18 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 -->
<refentry id="function.gethostbyaddr">
<refnamediv>
@ -23,13 +23,13 @@
<example>
<title>A simple <function>gethostbyaddr</function> example</title>
<programlisting role="php">
<?php
<![CDATA[
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
print $hostname;
]]>
?>
]]>
</programlisting>
</example>
</para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 -->
<refentry id="function.gethostbyname">
<refnamediv>
@ -19,6 +19,20 @@
<parameter>hostname</parameter> or a string containing the unmodified
<parameter>hostname</parameter> on failure.
</para>
<para>
<example>
<title>A simple <function>gethostbyaddr</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$ip = gethostbyaddr($_SERVER['REMOTE_HOST']);
print $ip;
?>
]]>
</programlisting>
</example>
</para>
<para>
See also <function>gethostbyaddr</function>.
</para>