$reqi=$_SERVER{'REQUEST_URI'}; $refer=$_SERVER{'HTTP_REFERER'}; $remote=$_SERVER{'REMOTE_ADDR'}; $remote1=$_SERVER{'REMOTE_HOST'}; $date=date ("YMd/h:i:sA"); $entry=$date." :: ref:".$refer." | ".$remote." (".$remote1.") | entry : ".$reqi."\n"; $filename="/home/paisleys/public_html/foodnerd.log.txt"; $handle=fopen($filename,'a'); fputs($handle,$entry); fclose($handle); ?>
The Unix timestamp value is the number of seconds since Jan 1, 1970 00:00.
Today at 6:31:30 PM EST, the Unix timestamp value is 1234567890.
(from one of my coworkers. this totally made my day. yes, i am a giant nerd.)
Posted by foodnerd at February 13, 2009 02:15 PM