cvs: phpdoc /en/reference/network/functions gethostbyname.xml
| From: | Philip Olson | Date: | Sat, 15 Feb 2003 01:01:21 +0000 |
| Subject: | cvs: phpdoc /en/reference/network/functions gethostbyname.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969351795@lists.php.net to get a copy of this message | ||
philip Fri Feb 14 20:01:21 2003 EDT
Modified files:
/phpdoc/en/reference/network/functions gethostbyname.xml
Log:
Typo
Index: phpdoc/en/reference/network/functions/gethostbyname.xml
diff -u phpdoc/en/reference/network/functions/gethostbyname.xml:1.5
phpdoc/en/reference/network/functions/gethostbyname.xml:1.6
--- phpdoc/en/reference/network/functions/gethostbyname.xml:1.5 Tue Jan 7 17:42:28 2003
+++ phpdoc/en/reference/network/functions/gethostbyname.xml Fri Feb 14 20:01:21 2003
@@ -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>