php-einfach.de/tuts_php_counter.php
musst du evtl. noch ausbauen.
Du musst die Datei außerdem in eine PHP Datei umwandeln.