3
$file = "counter.txt";
$user_ip = $_SERVER['REMOTE_ADDR'] . "n";
$ip_list = file($file);
$visitors = count($ip_list) - 1;
if (in_array($user_ip, $ip_list))
{
echo ("$visitors");
} else {
$fp = fopen($file,"a");
fwrite($fp, "n$user_ip");
fclose($fp);
$visitors++;
echo $visitors;
}
?>
upload this script and a .txt file with on the first line some text (just put the name of your site there), chmod the textfile 777 and that should do the job. It stores the ip's in the txt file.
I used it om
http://www.dehaarspecialist.be (bottom right).
I know, it's not perfect but it does the job

Code credits: ??????????