title: Tracking unique visitors only?
body: <p>Currently I have a file called "hits.php" and on any page I want to track page hits I just use <code>&lt;?php include("hits.php"); ?&gt;</code></p>
  
  <p>How can I track unique visitors only though? My hits are false since it can be refreshed by the same person and hits go up.</p>
  
  <p>Here's my source:</p>
  
  <pre><code>&lt;?php
   $hits = file_get_contents("./client/hits.txt"); 
   $hits = $hits + 1; 
  
   $handle = fopen("./client/hits.txt", "w"); 
   fwrite($handle, $hits); 
   fclose($handle); 
  
   print $hits; 
  
  ?&gt;
  </code></pre>
  
  <p>I don't really know how I could do cookie checking... is there a way to check IP's? Or what can I do?</p>
  
  <p>Thanks StackO.</p>