i'm having problem with the HTTP_USER_AGENT!
It's writing the file twice...
When I get rid of the HTTP_USER_AGENT it writes it once... someone please tell me why!
$addr = getenv("REMOTE_ADDR");
$brsr = getenv("HTTP_USER_AGENT");
$refr = getenv("HTTP_REFERER");
$time = date("H:i:s");
if ($file=fopen("$logFile", "a")) {
flock($file, 2);
fputs($file, "$time|$addr|$brsr|$refr\n");
flock($file, 3);
fclose($file);
}