How can I change this to have it store the date and time as well as the string.
<?
$file = "hideit.txt";
// add a b if you want to support windows platforms
$open = fopen( $file, "ab" ) or die ( "Operation Failed!" );
// define a $string (pipes & text optional - use whatever you want or none at all)
// also, use the $_SERVER superglobal (will work regardless of register globals settings)
$string = "user agent: " . $_SERVER['HTTP_USER_AGENT'] . " | remote address: " . $_SERVER['REMOTE_ADDR'] . " | http referrer: " . $HTTP_REFERER . "\n";
fputs( $open, $string,);
fclose( $open );
echo $_SERVER['REMOTE_ADDR'];
?>