Does anyone have a better script that shows me who comes to my site and where then go inside my site. other then this....
function hits ($QUERY_STRING, $REMOTE_ADDR, $HTTP_REFERER, $SCRIPT_NAME)
{
$qs = basename($QUERY_STRING); // for aim
$qs = str_replace("%20","_",$qs); // for aim
if ($qs != "mysn"
{
$page = basename($SCRIPT_NAME);
$differencetolocaltime=2;
$new_U=date("U"
+$differencetolocaltime*3600;
$date = date("g:ia - F d", $new_U);
$InfoOpen = fopen("userinfo.html", 'r');
$InfoRead = fread ($InfoOpen, filesize("userinfo.html"
);
fclose($InfoOpen);
$gethostbyaddr = gethostbyaddr($REMOTE_ADDR);
$InfoWrite = fopen("userinfo.html", 'w');
fwrite ($InfoWrite,"<table>
<tr>
<td align=top valign=top>
<b>Date: </b>$date
<br>
<b>Query Sring: </b>$qs
<br>
<b>IP: </b> <a href=\" <br>
<b>Host: </b>$gethostbyaddr
<br>
<b>Referer: </b>$HTTP_REFERER
<br>
<b>Page: </b>$page
</td>
</tr>
</table>
<br>
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
$InfoRead"
;
}
}
function hits ($QUERY_STRING, $REMOTE_ADDR, $HTTP_REFERER, $SCRIPT_NAME)
{
$qs = basename($QUERY_STRING); // for aim
$qs = str_replace("%20","_",$qs); // for aim
if ($qs != "mysn"
{
$page = basename($SCRIPT_NAME);
$differencetolocaltime=2;
$new_U=date("U"
$date = date("g:ia - F d", $new_U);
$InfoOpen = fopen("userinfo.html", 'r');
$InfoRead = fread ($InfoOpen, filesize("userinfo.html"
fclose($InfoOpen);
$gethostbyaddr = gethostbyaddr($REMOTE_ADDR);
$InfoWrite = fopen("userinfo.html", 'w');
fwrite ($InfoWrite,"<table>
<tr>
<td align=top valign=top>
<b>Date: </b>$date
<br>
<b>Query Sring: </b>$qs
<br>
<b>IP: </b> <a href=\" <br>
<b>Host: </b>$gethostbyaddr
<br>
<b>Referer: </b>$HTTP_REFERER
<br>
<b>Page: </b>$page
</td>
</tr>
</table>
<br>
<!-- -- -- -- -- -- -- -- -- -- -- -- -- -- -->
$InfoRead"
}
}