| version 1.1, 2002/09/04 01:57:03 |
version 1.2, 2002/10/01 11:58:39 |
| Line 27 $ident = new Net_Ident(gethostbyaddr($ad |
|
| Line 27 $ident = new Net_Ident(gethostbyaddr($ad |
|
| if ($ident->status() == 1) { |
if ($ident->status() == 1) { |
| print "Ident query failed: " . $ident->error() . ".<br>\n"; |
print "Ident query failed: " . $ident->error() . ".<br>\n"; |
| } else { |
} else { |
| print "Ident query OK, username '" . $ident->user() . "', ostype '" . $ident->osType() . "'.<br>\n"; |
print "Ident query OK, username '" . $ident->getUser() . "', ostype '" . $ident->getOsType() . "'.<br>\n"; |
| } |
} |
| |
|
| ?> |
?> |
| Line 49 if ($ident->status() == 1) { |
|
| Line 49 if ($ident->status() == 1) { |
|
| <p>Returns a boolean integer indicating the status of the query. A 1 is considered to be an error.</p> |
<p>Returns a boolean integer indicating the status of the query. A 1 is considered to be an error.</p> |
| <blockquote><tt>$ident->error();</tt></blockquote> |
<blockquote><tt>$ident->error();</tt></blockquote> |
| <p>Returns a string containing the last error message generated. This message may be internally generated, or returned by the remote ident server.</p> |
<p>Returns a string containing the last error message generated. This message may be internally generated, or returned by the remote ident server.</p> |
| <blockquote><tt>$ident->username();</tt></blockquote> |
<blockquote><tt>$ident->getUser();</tt></blockquote> |
| <p>Returns a string containing the <tt>USERID</tt> returned by the remote ident server. This will return false if there was an error with the query.</p> |
<p>Returns a string containing the <tt>USERID</tt> returned by the remote ident server. This will return false if there was an error with the query.</p> |
| <blockquote><tt>$ident->osType();</tt></blockquote> |
<blockquote><tt>$ident->getOsType();</tt></blockquote> |
| <p>Returns a string containing the operating system type of the remote host, as returned by the remote ident server. Permitted values may be an ASCII string or a numerical code compliant with RFC 1340, "Assigned Numbers".</p> |
<p>Returns a string containing the operating system type of the remote host, as returned by the remote ident server. Permitted values may be an ASCII string or a numerical code compliant with RFC 1340, "Assigned Numbers".</p> |
| <hr> |
<hr> |
| |
|