This is part of the code in counter.php
// get the current hit count
$fp_count = fopen($file, "r");
$count = fread($fp_count, filesize($file));
fclose($fp_count);
The error message you posted
Warning: fread(): Length parameter must be greater than 0. in /home/liberi/public_html/ragnarok/counter.php on line 20
meant that the second parameter of fread was 0. So I assume that the file count.txt was empty. I think it that it existet at all because fopen was successful.
I tried the counter.php script with a count.txt file which just contained a 0 and the counter worked without any problems on my server.
While writing this I testet the code with an empty count.txt file and the counter didn't work.
Hmm ... seems like the counter script doesn't like any line feeds in the count.txt file. So to initialize the count.txt file execute the following command on the shell:
echo -n 0 > count.txt
Then set the permissions of that file so that the web server can write to it.
That counter.php script definitively needs some tweaking...
Thomas