X-Static Codes
Chat to Us @
SNM Chat
in #X-Static
Home
|
Contact
Login
Register
Search
Scripting
Snippets
Tutorials
Competitions
Links
Memberlist
Pastebin
Affiliates
Contact Admin
Sponsors
Nameless
Official #nameless website
Rooted.in
I got Rooted did you?
Stats
Total Members: 56
Newest User: Nofilicity
Snippets Added: 153
View
IP Tracer and Logger
Snippet Author:
FURBY
Rated:
Snippet Description:
i have made a simple script that will record visitors IP, the time, and the date and there browser
<?php //Set the date so we can store it in the text file. $tdate = date("dS F Y h:i:s A"); //Check if there is a referer if (!$HTTP_REFERER) { $HTTP_REFERER = "(NONE)"; } //Store it in the counter.txt file ! DONT FORGET TO SET COUNTER.TXT CHMOD 777 ! $fp = fopen("counter.txt", "a"); $line = "IP Address: $REMOTE_ADDR - Date: $tdate - Referer: $HTTP_REFERER - Browser: $HTTP_USER_AGENT\n"; fwrite($fp, $line); fclose($fp); ?>
Favorite Script
-
Smilies
Message:
Comments: