I can work on this some if you need it may take 10-20 minutes to work it out, but could store a cookie basically say "hey i've been here don't re-add me!", other wise log there ip which will = logging a new hit ...... etc..
That could work to be more accurate if u need it to be, generally tho 60% of the will have basically a static ip (wont change often)
Another ~?~
What are you wanting this counter to do?
A page hit counter? (only show unique visit counts)
Lil Fun thing u may like btw:
To show how long it takes a page to load example:
www.dfnetworks.ath.cx
include this at the top of your page:
<?
$time = explode(" ", microtime());
$stime = $time[1] . substr($time[0],1,strlen($time[0]));
?>
Include this where you want to show the generation time:
<?
$time2 = explode(" ", microtime());
$etime = $time2[1] . substr($time2[0], 1, strlen($time2[0]));
echo "\nGenerated in:<br />" . substr($etime - $stime,-0,8) . " seconds\n";
?>
Will produce something roughly like:
Generated in:
1.076629 seconds