Hi leute,
warum kann dieser counter nicht funktionieren?
so bstimmt nicht :-)
<?
function counter (){
$file = "counter.txt";
$data = fopen($file, "r");
$count = fread($data, filesize($file));
$count = $count++;
$count++;
$data = fopen($file, "w+");
fwrite($data, $count);
fclose($data);return $count;
}for ($i=0; $i <= 2; $i++)
{
$counter = counter();
print "$counter<br>";
}
?>als ob er sich überschlagen würde.
immernoch.
MfG Andy