This counter will count every time it is opened, and also gives an error that "P"
is not declared a varable==
<?php
$var = '$p';
$count = file("counter.txt");
$ncount = $count[0]+1;
if($p == "yes"){$ncount = $count[0];}
echo $ncount;
$var_p = $fp = fopen("counter.txt", "w");
fwrite($fp, $ncount);
fclose($fp);
?>
So how does "p" become a variable?
thanks
tofu