I think this is a nice little script to track comings and goings on a specific page.
PHP Code:<?php
$today = date("F j, Y, g:i a");
if ($QUERY_STRING!= ""){
$url = "http://".$SERVER_NAME.$PHP_SELF.'?'.$QUERY_STRING;
}else{
$url = "http://".$SERVER_NAME.$PHP_SELF;
}
$output=$today."\t".$url."\t".$HTTP_REFERER."\t".$REMOTE_ADDR."\n";
$out = fopen("/path/to/file.txt", "a+");
fwrite($out, $output);
fclose($out);
?>
Follow Me | Looking for Merchants Who Do Scifi Stuff
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks