• http://snipplr.com/view/1606/php--finger-php-simple-client/

    http://www.phpro.org/examples/PHP-Finger-Client-Linux-Kernel.html

    function Finger
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    <?
    /*** connect to port 79 ***/
    //created a <UL>; list...

    $fp = fsockopen('kernel.org', 79);

    /*** get the info ***/
    while( !feof($fp) ) {
    /*** get the text ***/
    $text = fgets($fp, 128);
    /*** make sure we have a valid line ***/
    if(trim($text) != '')
    {
    /*** add to the list ***/
    echo '<li>'. trim($text).'</li>';
    }
    }
    /*** close the file pointer ***/
    fclose($fp);
    ?>
    Prev:
    PHP:: BlackList Lookup
    Next:
    PHP:: Check Valid Email