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.
Throws
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.
Note: 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().
<?php $server = "localhost" ; // or IP adress to use $query = "ralph" ; // Username to look up $data = Net_Finger::query( $server, $query) ; echo $data ; ?>
Deliver First Class Web Sites: 101 Essential Checklists Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?