Hi,
I have a php counter that is fully functioning but i wanted to add some information to it. At the moment it shows os browser ip. The script looks like this
<?php
$counterFile = "scripts/access.txt";
if (file_exists($counterFile))
{
$fp = fopen($counterFile,"r+");
$count = fgets($fp,5);
$count += 1;
rewind($fp);
fputs($fp,$count,5);
fclose($fp);
}
else
{
$fp = fopen($counterFile,"w");
$count = "1";
fputs($fp,$count,5);
fclose($fp);
}
$open = fopen("scripts/hits.php","a+");
fputs($open,"<div align='left'><table border='0' cellpadding='0' cellspacing='0' width='92%'><tr><td width='30%'><p align='left'><font face='Verdana' color='#D5E4F2' size='1'><b>$REMOTE_ADDR</b></font></td><td width='70%'><p align='left'><font face='Verdana' color='#D5E4F2' size='1'><b>$HTTP_USER_AGENT</b></font></td></tr></table></div><br>");
?>
My questions to you guys are
how can i get it to ignore my own ip address from all statistics.
how can i get it to add in the time that the user visits
is it possible to add in the site from which they came.
Thanks for any help in advance