I just cleaned up his code.
There are a lot of things you need to add to allow the code to work effeciently.
Mainly look towards checking for file locking issues (Could lead to multiple...
Search:
Type: Posts; User: Chris
Search: Search took 0.01 seconds.
- 29 Dec. 2009, 12:22am
Thread: [PHP] Log site visitors
by Chris- Replies
- 10
- Views
- 1,089
I just cleaned up his code. There are a lot of...
- 27 Dec. 2009, 09:13am
Thread: [PHP] Log site visitors
by Chris- Replies
- 10
- Views
- 1,089
View Post
<?php
$File = "Log.txt";
$IP = @$_SERVER['REMOTE_ADDR'];
$Time = date("m-d-y");
$Date = date("g:ia");
if($Handle = @fopen($File, "a")){
@fwrite($Handle, "IP = {$IP}\r\nTime =...
Results 1 to 2 of 2