$date = date ("F d, Y GMT TIME??"); $ip = $_SERVER['REMOTE_ADDR']; $referer = "User has come from " . $_SERVER['HTTP_REFERRER']; $file = $_SERVER['PHP_SELF']; $docRoot = $_SERVER['DOCUMENT_ROOT']; $logFile = "logs/visitors.log"; $log = "[$date] [$ip] [$docRoot$file] [$referer] \n"; $fp = fopen($logFile, "a"); fputs($fp, $log); fclose($fp);
Ok, and most of that works, except for one bit, when i open the file after a visitor, the $referer is empty, why is it not comming up? is it ment to have 2 'R's at the end? i tryed with one but no difference!
Oh and see for the GMT time, whats the format for GMT time?
I Would appriciate any help atall!