Hallo,
vielleicht erstmal an der Übersicht arbeiten und mit PHP5?
<?php
$counterFileName = "counter.txt";
$counterstand = (int) file_get_contents($counterFileName);
if ($_COOKIE['User'] != '10') {
$counterstand++;
setcookie("User", "10", time()+60*60*24);
} else {
file_put_contents($counterFileName, $counterstand);
}
?>
<br><p class="artikel">Besucher:<br><?=$counterstand?></p>
und mal
var_dump($_COOKIE) testen ...;
error_reporting (E_NOTICE, E_ALL) auch immer gut.
Gruß
jobo