cvs: peardoc /en/package/networking/net-whois query.xml
| From: | Arnaud Limbourg | Date: | Tue, 29 Jul 2003 18:48:09 +0000 |
| Subject: | cvs: peardoc /en/package/networking/net-whois query.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1139@lists.php.net to get a copy of this message | ||
arnaud Tue Jul 29 14:48:09 2003 EDT
Modified files:
/peardoc/en/package/networking/net-whois query.xml
Log:
* fix parameters order in query example (thanks to Nino Lukic)
Index: peardoc/en/package/networking/net-whois/query.xml
diff -u peardoc/en/package/networking/net-whois/query.xml:1.3
peardoc/en/package/networking/net-whois/query.xml:1.4
--- peardoc/en/package/networking/net-whois/query.xml:1.3 Tue Jun 17 07:10:36 2003
+++ peardoc/en/package/networking/net-whois/query.xml Tue Jul 29 14:48:08 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="package.networking.net-whois.query">
<refnamediv>
<refname>Net_Whois::query()</refname>
@@ -11,8 +11,8 @@
</funcsynopsisinfo>
<funcprototype>
<funcdef>string <function>Net_Whois::query</function></funcdef>
- <paramdef>string <parameter>$server</parameter></paramdef>
<paramdef>string <parameter>$query</parameter></paramdef>
+ <paramdef>string <parameter>$server</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
@@ -21,44 +21,44 @@
<para>
Executes a Whois query on a server
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.networking.net-whois.query.parameter">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
- <parameter>string $server</parameter> - the name of the server or the
- IP-adress
+ <parameter>string $query</parameter> -
+ the Whois database object to look up
</para>
- </listitem>
+ </listitem>
<listitem>
<para>
- <parameter>string $query</parameter> -
- the Whois database object to look up
+ <parameter>string $server</parameter> - the name of the server or the
+ IP-adress
</para>
- </listitem>
+ </listitem>
</itemizedlist>
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.networking.net-whois.query.return">
&title.returns;
<para>
<parameter>string</parameter> - the data from the Whois request.
</para>
- </refsect1>
+ </refsect1>
<refsect1 id="package.networking.net-whois.query.throws">
&title.throws;
<para>
<table>
- <title>&title.throws.errortable;</title>
+ <title>&title.throws.errortable;</title>
<tgroup cols="4">
<thead>
<row>
<entry>Error code</entry>
- <entry>Error message</entry>
- <entry>Reason</entry>
- <entry>Solution</entry>
+ <entry>Error message</entry>
+ <entry>Reason</entry>
+ <entry>Solution</entry>
</row>
</thead>
<tbody>
@@ -74,10 +74,10 @@
Connection to server failed
</entry>
<entry>
- Check typing of server address and make sure the host is
+ Check typing of server address and make sure the host is
connected to the network.
</entry>
- </row>
+ </row>
</tbody>
</tgroup>
</table>
@@ -85,34 +85,34 @@
<note>
<para>
You will <emphasis>not</emphasis> get a &class.pear-error;, if
- the query fails due to a not existing whois object. This can be
+ the query fails due to a not existing whois object. This can be
only done by checking the data returned by <function>query</function>.
</para>
</note>
- </refsect1>
+ </refsect1>
<refsect1 id="package.networking.net-whois.query.note">
&title.note;
¬e.canstatic;
- </refsect1>
+ </refsect1>
<refsect1 id="package.networking.net-whois.query.example">
&title.example;
<example>
<title>Using Whois-<function>query</function></title>
<programlisting role="php">
- <![CDATA[
+ <![CDATA[
<?php
require_once "Net/Whois.php";
$server = "whois.denic.de";
$query = "phpcrawler.de"; // get information about
// this domain
-$data = Net_Whois::query($server, $query);
+$data = Net_Whois::query($query, $server);
echo $data;
?>
-]]>
+]]>
</programlisting>
</example>
- </refsect1>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
@@ -132,4 +132,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
+-->