cvs: phpdoc /en/reference/network/functions gethostbyaddr.xml

From: Date: Sat, 15 Feb 2003 00:58:55 +0000
Subject: cvs: phpdoc /en/reference/network/functions gethostbyaddr.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351794@lists.php.net to get a copy of this message
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>.

« previous php.doc (#969351794) next »