Menu
Hi! I am using the following to try to increment the numeric contents of a file and then print it.
$hits = file (‘../templates/hits.txt’);
$hits++;
$record = fopen (‘../templates/hits.txt’, ‘w’);
fwrite ($record, “$hits”);
fclose ($record);
print $hits;
It just prints “Array”. What am I doing wrong?