Re: .plan (finger) scripts in PHP?
| From: | Justin Buist | Date: | Mon, 17 Sep 2001 20:38:40 +0000 |
| Subject: | Re: .plan (finger) scripts in PHP? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12523@lists.php.net to get a copy of this message | ||
> If I was looking for one that came the closest I was looking for, it
> would be the Webdog one. If any of you know of any scripts that will
> let me run a finger server on my machine with our without MySQL, then
> send me a holler. THX! :) --
I assume you mean a PHP based finger client, not server.
Picked this out of the PHP-HOWTO on linuxdoc.org, modified it to work with
php4:
function finger ($host, $user)
{
$fp = fsockopen($host, 79, $errno, $errstr) or die("$errno: $errstr");
fputs($fp, "$user\n");
while (!feof($fp))
echo fgets($fp, 128);
fclose($fp);
}
Usage:
finger("idsoftware.com", "zaphod");
Original URL: http://www.linuxdoc.org/HOWTO/PHP-HOWTO-19.html,
it's in
Section 19.3.
Justin Buist
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI 49512
Ph. 616.554.2700
Fx. 616.554.3331
Mo. 616.291.2612