One simple question why does:
<?php
//This writes the data to the textfile
$filename = "weblog.txt";
//Opens the file
$open_file = fopen($filename, "a+");
$date = date(l);
$serveruser = "$_SERVER['HTTP_USER_AGENT']";
$serverrefer = "$_SERVER['HTTP_REFERER']";
$string = "$date : $serveruser : $serverrefer\n";
print($string);
fwrite($open_file, "$string");
//Closes the file
fclose($open_file);
?>
Print out Sunday : : ?
I am guessing that it isn't getting the $_SERVER variables, but why would it do this?