<?
$counter_file_line = "/php/counter/count.txt";
$counter_file_line = file($counter_file);
$counter_file_line[0]++;
$cf = fopen($counter_file,'w');
fputs($cf,"$counter_file_line[0");
fclose($cf);
print $counter_file_line[0];
?>
dit is nu mijn code:
www.saintwarriors.com/php/counter/counter.php zoals je ziet geeft ie nu alleen nog een foutmelding in line 6, maar op php.net staat er over fopen erg weinig.
Iemand een id wat er fout is aan die code?
$counter_file_line = "/php/counter/count.txt";
$counter_file_line = file($counter_file);
$counter_file_line[0]++;
$cf = fopen($counter_file,'w');
fputs($cf,"$counter_file_line[0");
fclose($cf);
print $counter_file_line[0];
?>
dit is nu mijn code:
www.saintwarriors.com/php/counter/counter.php zoals je ziet geeft ie nu alleen nog een foutmelding in line 6, maar op php.net staat er over fopen erg weinig.
Iemand een id wat er fout is aan die code?