Ich habe folgenden Counter eingebaut:
Es soll sich um einen Counter handeln, der einen Coockie benutzt, um eine Reloadsperre zu verwenden. Dabei kommt es bei mir aber zu folgender Fehlermeldung:
Notice: Use of undefined constant willi - assumed 'willi' in C:\apachefriends\xampp\htdocs\OwnData\falko\menu.php on line 23
Notice: Use of undefined constant willi - assumed 'willi' in C:\apachefriends\xampp\htdocs\OwnData\falko\menu.php on line 23
Wer kann helfen?
Gruß
PHP Code:
<?php
if(!file_exists("count.txt"))
{$counter=fopen("count.txt", "a");}
else
{$counter=fopen("count.txt", "r+");}
$aufruf=fgets($counter,100);
if(!$_COOKIE[willi] OR $_COOKIE[willi]<time()-1800)
{
setcookie("willi", time());
$aufruf=$aufruf+1;
rewind($counter);
fputs($counter, $aufruf);
}
fclose($counter);
echo $aufruf;
?>
Notice: Use of undefined constant willi - assumed 'willi' in C:\apachefriends\xampp\htdocs\OwnData\falko\menu.php on line 23
Notice: Use of undefined constant willi - assumed 'willi' in C:\apachefriends\xampp\htdocs\OwnData\falko\menu.php on line 23
Wer kann helfen?
Gruß
Comment