robert - a moze statystyki dostarczane przez providerow wystarcza? pokaz kawalek kodu tego licznika to zobaczymy co sie da zrobic
~robert
2006-07-04 14:24
W miedzyczasie probowałem to dodac do page.tpl do stopki strony, ale tez nici... brakuje mi wiedzy, prosze o pomoc... poniżej kod który chce wstawic:
<?php // opens the php document
$file = "count.txt"; // sets the file where the count will be located $counter = file("$file"); // makes the script read the text file $r = $counter[0]; // sets $r to the number in the counter file if (strlen($r) == 0) {$r=0;} $r=$r+1; // if the string length of the count is zero it will add one $e = fopen("$file", "w"); // opens the file and sees if it is writable fwrite($e, $counter=""); // erases the count in the file fwrite($e, $r); // writes the new count to the file fclose($e); // closes the file echo("$r"); // shows the file ?> </body> </html>