Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    How does this look?
    Code:
    <?php
    $ip = $_SERVER['REMOTE_ADDR'];
    $page = $_SERVER['REQUEST_URI'];
    $date = date("m-d-y / H:i:s");
    $invo = " <b>Date</b> - " . $date . " <br /> <b>IP Address</b> -" . $ip . " <br /> <b>Page Visited</b> - " . $page . "<br /><br />";
    $open_file = fopen("php/ips.html", "a");
    fwrite($open_file, $invo);
    fclose($open_file);
    ?>
    When I open the ips.html file this is what I see:

    Date - 03-21-12 / 14:19:07
    IP Address -198.236.64.22
    Page Visited - /index.html
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs



  2.  

  3. #2
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    For ? Yeah, looks like it works... What you planning on using it for ?

  4. #3
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    Quote Originally Posted by Webzarus, post: 232592
    For ? Yeah, looks like it works... What you planning on using it for ?
    To see how much traffic I get and on what page, as well as which day I get the most traffic on.
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs



  5. #4
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Ok, cool... That's in your log files though isn't it ?

    I use some scripts like that for logging all activity and by whom ( kind of a history file )... Especially if someone has delete capabilities...

  6. #5
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    Quote Originally Posted by Webzarus, post: 232606
    Ok, cool... That's in your log files though isn't it ?

    I use some scripts like that for logging all activity and by whom ( kind of a history file )... Especially if someone has delete capabilities...
    not sure what you mean by log file.
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs



  7. #6
    Banned
    Join Date
    May 2011
    Location
    Fairfax, CA
    Posts
    2,036
    Member #
    28003
    Liked
    126 times
    Apache log files. They are accessible from cPanel if you use that. 000craphost doesn't have them though.

  8. #7
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    Quote Originally Posted by shovenose, post: 232615
    Apache log files. They are accessible from cPanel if you use that. 000craphost doesn't have them though.
    Lol 000webhost has worked for me so far so its not 000craphost yet.
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs




Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:21 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com