FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » tracking IP's
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
tracking IP's [message #182065] Tue, 02 July 2013 00:37 Go to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
I want a simple script that will keep track of IP's in a mysql table.

This script works. But puts the IP in a text file.
It's ok, but doesn't seem to detect any other IP but mine.
I know this because my hit counter shows there has been new visitors.

$ipaddress = $_SERVER['REMOTE_ADDR'];
$date = date ("M dS H:i:s");

$message = "$page _ $ipaddress _ $date\n";

$File = "track.txt";
$Open = fopen($File, "a+");
if ($Open){

fwrite($Open, "$message");
fclose ($Open);
}


I have been looking around for a script but can't seem to find one that
works the way I want.
anyone have such a script online somewhere?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Mailto();
Next Topic: Sandbox
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 03:21:08 GMT 2024

Total time taken to generate the page: 0.06704 seconds