Laurin: Einfacher PHP Counter

Beitrag lesen

Hier die fertige Lösung:

  
<?php  
   $counterFileName = "counter.txt";  
  
		$counterstand = (int) file_get_contents($counterFileName);  
		  
    if ($_SESSION['count'] != 'count') {  
        $counterstand++;  
  
        session_start();  
		$_SESSION['count']='count';  
  
        } else {  
                fclose ($counterstand);  
        }  
?>  
<br><p class="artikel">Besucher:<br><?=$counterstand?></p></body></html>  

Danke an Jobo!

Gruß
Laurin