Results 1 to 10 of 12

Threaded View

  1. #1
    Join Date
    Jan 2008
    Location
    PA
    Posts
    1,164
    Points
    4,066,470.25
    Rep Power
    221

    Default SonniE's iP LoGGER

    All Written By Me you will need to make this a php document and then create a file on the same directory called iplogsource.txt
    Wana Test it?
    whatsmyip.php
    and the log is
    iplogsource.txt
    Code:
    <html>
    <body bgcolor="red">
    <?php
    echo "Your iP iS: ";
    echo $_SERVER['REMOTE_ADDR'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $myFile = "iplogsource.txt";
    $fh = fopen($myFile, 'a') or die("can't open file");
    $stringData = "------------------------------------------";
    fwrite($fh, $stringData);
    $time = date("r"); 
    fwrite($fh, $time); 
    $Space = "\n";
    fwrite($fh, $Space);
    $stringData = $ip;
    fwrite($fh, $ip); 
    $stringData = "\n";
    fwrite($fh, $stringData);
    $stringData = "\n";
    fwrite($fh, $stringData);
    fclose($fh);
    ?>
    </html>
    Last edited by SonniE; 04-08-2008 at 03:42 PM.


    Get Vip: »Here«
    Donate: »Here«
    >>List of Compilers<<
    >>SFDM Name Generator<<
    [Owner Of FluidCoding]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts