Form Php

$address = $_SERVER['REMOTE_ADDR'];
$referer = $_SERVER['HTTP_REFERER'];
$browser = $_SERVER['HTTP_USER_AGENT'];
$file = fopen("log.html",  "a");  
$time = date("H:i dS F");
fwrite( $file, "Time: $time
" );
if( $address != null)
{
  fwrite( $file, "IP Address: $address 
");
}  
if( $referer != null)
{
  fwrite( $file, "Referer: $referer
");  
}
fwrite( $file, "Browser: $browser

");  
fclose($file);
?>