Net_Finger::query() – does a finger query


require_once 'Net/Finger.php';

string Net_Finger::query ( string $server , string $query )


Execute a finger query on a server


  • string $server - The name of the server or the IP-adress

  • string $query - The finger object to look up

Return value

string - the data from the finger request.


The returned PEAR_Error object in case of an error is unspecific, so you can ignore the error code and/or message. The reason for a failure could be a failed connection to the server or the server did not run a finger service.

You will not get a PEAR_Error, if the query fails due to a not existing finger object. This can be only done by checking the data returned by query().


This function can be called statically.


Using query()


"localhost" // or IP adress to use
$query  "ralph" ;     // Username to look up

$data Net_Finger::query$server$query) ;

Net_Finger (Previous) Net_FTP (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.