philip          Fri Feb 14 19:58:55 2003 EDT

  Modified files:              
    /phpdoc/en/reference/network/functions      gethostbyaddr.xml 
  Log:
  Added an example
  
  
Index: phpdoc/en/reference/network/functions/gethostbyaddr.xml
diff -u phpdoc/en/reference/network/functions/gethostbyaddr.xml:1.3 
phpdoc/en/reference/network/functions/gethostbyaddr.xml:1.4
--- phpdoc/en/reference/network/functions/gethostbyaddr.xml:1.3 Tue Jan  7 17:42:28 
2003
+++ phpdoc/en/reference/network/functions/gethostbyaddr.xml     Fri Feb 14 19:58:55 
+2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/network.xml, last change in rev 1.2 -->
   <refentry id="function.gethostbyaddr">
    <refnamediv>
@@ -18,6 +18,20 @@
      Returns the host name of the Internet host specified by
      <parameter>ip_address</parameter> or a string containing the unmodified 
      <parameter>ip_address</parameter> on failure.
+    </para>
+    <para>
+     <example>
+      <title>A simple <function>gethostbyaddr</function> example</title>
+      <programlisting role="php">
+<?php
+<![CDATA[
+$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
+  
+print $hostname;
+]]>
+?>
+      </programlisting>
+     </example>
     </para>
     <para>
      See also <function>gethostbyname</function>.



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to