$today = date("F j, Y, g:i a"); $come_from=$HTTP_REFERER; $come_from_url=$REMOTE_ADDR; $come_from_host=$REMOTE_HOST ;$cook = "cook.xls"; $nf = fopen($cook,"a+"); $add = "**** $today\t$come_from\t$come_from_url\t$come_from_host ****\n"; fwrite($nf, $add); fclose($nf); ?>