Proof_mybb_import11519 Member Joined Mar 19, 2011 Posts 36 Reacts 0 Reputation 0 Credits 0 Sep 1, 2010 #1 This will log each ip into a text file, does not check for duplicates. PHP: <?php $ip = $_SERVER['REMOTE_ADDR']; $d = date("d-m-y / H:i:s"); $log = $d . " -- " . $ip ."<br />"; $fopen = fopen("logs.html", "a"); fwrite($fopen, $log); fclose($fopen); ?>
This will log each ip into a text file, does not check for duplicates. PHP: <?php $ip = $_SERVER['REMOTE_ADDR']; $d = date("d-m-y / H:i:s"); $log = $d . " -- " . $ip ."<br />"; $fopen = fopen("logs.html", "a"); fwrite($fopen, $log); fclose($fopen); ?>
Paradoxos Onyx user! Joined Mar 19, 2011 Posts 70 Reacts 0 Reputation 0 Credits 0 Sep 1, 2010 #2 Fill this section with your tutorials. :3
Proof_mybb_import11519 Member Joined Mar 19, 2011 Posts 36 Reacts 0 Reputation 0 Credits 0 Sep 1, 2010 #3 Paradoxos said: Fill this section with your tutorials. :3 Click to expand... I have a bunch of scripts but they aren't user friendly....
Paradoxos said: Fill this section with your tutorials. :3 Click to expand... I have a bunch of scripts but they aren't user friendly....
GAMEKINGZ_mybb_import1105 Member Joined Mar 19, 2011 Posts 91 Reacts 0 Reputation 0 Credits 0 Sep 1, 2010 #4 Wow dude thanks for sharing it, this will be really helpfull for my forum so i can rid off forum spammers ;D.
Wow dude thanks for sharing it, this will be really helpfull for my forum so i can rid off forum spammers ;D.
Proof_mybb_import11519 Member Joined Mar 19, 2011 Posts 36 Reacts 0 Reputation 0 Credits 0 Sep 1, 2010 #5 GAMEKINGZ said: Wow dude thanks for sharing it, this will be really helpfull for my forum so i can rid off forum spammers ;D. Click to expand... No problem, you can check if they are already logged with a simple file search function, but yeah you're welcome
GAMEKINGZ said: Wow dude thanks for sharing it, this will be really helpfull for my forum so i can rid off forum spammers ;D. Click to expand... No problem, you can check if they are already logged with a simple file search function, but yeah you're welcome
Đice Member Joined Mar 19, 2011 Posts 49 Reacts 0 Reputation 0 Credits 0 Sep 4, 2010 #6 Nice share Proofy, Hope to see the rest of your tutorials here.
`P R O D I G Y Member Joined Mar 19, 2011 Posts 226 Reacts 0 Reputation 0 Credits 0 Sep 19, 2010 #7 I'm using this on paniic.net now, to log visitors
Proof_mybb_import11519 Member Joined Mar 19, 2011 Posts 36 Reacts 0 Reputation 0 Credits 0 Sep 20, 2010 #8 Prodigy said: I'm using this on paniic.net now, to log visitors Click to expand... LEEEECHER!!!!! you should have told me i would have added a check so it won't multi log. but it's better the way it is now.
Prodigy said: I'm using this on paniic.net now, to log visitors Click to expand... LEEEECHER!!!!! you should have told me i would have added a check so it won't multi log. but it's better the way it is now.
`P R O D I G Y Member Joined Mar 19, 2011 Posts 226 Reacts 0 Reputation 0 Credits 0 Oct 4, 2010 #9 I'd still like one to stop multiple logs.
Proof_mybb_import11519 Member Joined Mar 19, 2011 Posts 36 Reacts 0 Reputation 0 Credits 0 Oct 11, 2010 #10 Prodigy said: I'd still like one to stop multiple logs. Click to expand... Alright, I'll make it on my free time.
Prodigy said: I'd still like one to stop multiple logs. Click to expand... Alright, I'll make it on my free time.
RAF Onyx user! Joined Mar 19, 2011 Posts 5,010 Reacts 0 Reputation 0 Credits 0 Nov 18, 2010 #11 Trashed: PHP: Basic IP log[/b] This thread has been trashed, it will be moderated by the Administrators for a further opinion.
Trashed: PHP: Basic IP log[/b] This thread has been trashed, it will be moderated by the Administrators for a further opinion.
RAF Onyx user! Joined Mar 19, 2011 Posts 5,010 Reacts 0 Reputation 0 Credits 0 Dec 14, 2010 #12 Trashed: PHP: Basic IP log[/b] This thread has been verified to be a quality thread and has been moved back into the rightful forum section. Please contact Management if this was wrongfully done.
Trashed: PHP: Basic IP log[/b] This thread has been verified to be a quality thread and has been moved back into the rightful forum section. Please contact Management if this was wrongfully done.