| px | top | add code | search | signup | login | help |
<?php
// Usage: echo finger(hostname [,username, [port]]);
Function finger ($host, $user="", $port=79) {
$rc=fsockopen($host,$port);
fputs($rc,"$user\n");
while (!feof($rc)) { $str .= fgets($rc,128); }
fclose($rc);
return $str;
}
?>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.