This is my first self built script. It is supposed to log ip's and date/time. Unfortunatly I get an error.
Here's the script:
<?php
$month = date("M");
$day = date("d");
$year = date("Y");
$time = ":".date("H").":".date("i").":".date("s");
$visos = $SERVER["HTTP_USER_AGENT"];
$visip = $SERVER["REMOTE_ADDR"]
//write to flat file
$data= $visip." - - ".$day."/".$month."/".$year.$time." - "$visos."\n";
$filename = "visitor.log";
$fp=fopen($filename, "a");
fwrite($fp, $data);
fclose($fp);
?>
Here's the error:
Parse error: parse error, unexpected T_VARIABLE in line 12
Can anyone tell me where I've gone wrong ?
Help will be very much appreciated !
Michael J. Drost