PX : code

Finger by Christopher Heschong
Download this code


<?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.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.