mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-24 10:41:56 +01:00
15 lines
315 B
PHP
15 lines
315 B
PHP
<?php
|
|
# Quelle: http://www.schattenbaum.net/php/
|
|
$datei = fopen("counter.txt","r+");
|
|
$counterstand = fgets($datei, 10);
|
|
if($counterstand == "")
|
|
{
|
|
$counterstand = 0;
|
|
}
|
|
$counterstand++;
|
|
echo $counterstand;
|
|
rewind($datei);
|
|
fwrite($datei, $counterstand);
|
|
fclose($datei);
|
|
?>
|