define ("NAZEV_SOUBORU", "pocitadlo.dta");
if (file_exists(NAZEV_SOUBORU))
{
$soubor=fopen(NAZEV_SOUBORU, "r+");
$stav=fread($soubor, 10);
}
else
{
$soubor=fopen(NAZEV_SOUBORU, "w");
$stav=0;
}
rewind($soubor);
fwrite($soubor,++$stav,10);
fclose($soubor);
?>
Vstupte prosím