How do edit this code so it will not continue writing in one line
So it would show something like this:
66.167.77.165 - Wed Aug 20 2:58:43 2003 CDT
66.167.77.165 - Wed Aug 20 2:58:43 2003 CDT
66.167.77.165 - Wed Aug 20 2:58:43 2003 CDT
instead of:
66.167.77.165 - Wed Aug 20 2:58:43 2003 CDT66.167.77.165 - Wed Aug 20 2:58:43 2003 CDT66.167.77.165 - Wed Aug 20 2:58:43 2003 CDT
<?
$date = date("D M j g:i:s Y T");
$log_file = "ip.txt";
$ip = $REMOTE_ADDR;
$fp = fopen("$log_file", "a+");
fputs($fp, "$ip - $date");
flock($fp, 3);
fclose($fp);
PRINT("Your IP address was logged.....$ip");
?>