$ip="192.168.0.254";
$remoteip=$_SERVER['REMOTE_ADDR'];
$count_my_page = ("hitcounter.txt");
$hits = file($count_my_page);
if ($remoteip != $ip){
$hits[0] ++;
}
$fp = fopen($count_my_page , "w");
fputs($fp , "$hits[0]");
fclose($fp);
echo $hits[0];
?>