Einfacher gehts so: PHP-Code: <?php$hits = file_get_contents('counter.txt');file_put_contents('counter.txt', ++$hits);?>
<?php$hits = file_get_contents('counter.txt');file_put_contents('counter.txt', ++$hits);?>
--
Zitat von Manni Einfacher gehts so: PHP-Code: <?php $hits = file_get_contents('counter.txt'); file_put_contents('counter.txt', ++$hits); ?> ... Da funkioniert aber nur, wenn man entweder PHP5 benutzt oder das entsprechende Kompatibilitäts-Include aus PEAR verwendet.
<?php $hits = file_get_contents('counter.txt'); file_put_contents('counter.txt', ++$hits); ?>
Foren-Regeln