What's Here?
- Members: 148,880
- Replies: 504,992
- Topics: 79,540
- Snippets: 2,661
- Tutorials: 705
- Total Online: 2,198
- Members: 86
- Guests: 2,112
|
Logs IP's of page visitors, and saves to a log HTML file.
IP's are anchored to dnsstuff.org's City from IP page.
|
Submitted By: tel0r
|
|
Rating:
 
|
|
Views: 25,598 |
Language: PHP
|
|
Last Modified: May 13, 2005 |
Instructions: Can be used within a current page, or added to a site via an IFrame. (maybe other ways to implement too?)
Auto Creates log.html,if file does not exist. |
Snippet
<?php
$logfile= '/full_path_to/log.html';
$IP = $_SERVER['REMOTE_ADDR'];
$logdetails= date("F j, Y, g:i a") . ': ' . '<a href=http://dnsstuff.com/tools/city.ch?ip='. $_SERVER['REMOTE_ADDR']. '>'. $_SERVER['REMOTE_ADDR']. '</a>';
$fp = fopen($logfile, "a");
?>
Copy & Paste
|
|
|
Be Social
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|