added tips to lamer.bash help
[mirrors/Programs.git] / php / stredni-php / pocitadlo2.php
1 <?php
2
3 $fp = FOpen ("pocitadlo.txt", "r");
4 $pocet = FRead ($fp, 90); //90 znaku dlouhe cislo by melo byt dost
5 FClose ($fp);
6
7 $pocet = ($pocet + 1);
8
9 if (isset($HTTP_COOKIE_VARS['pricteno'])):
10 echo ("pricteno = " . $HTTP_COOKIE_VARS['pricteno'] . " - Ji\9e Pøièteno - Dal\9aí pøiètení mo\9eno za hodinu od poslednì.<br />");
11 else:
12 $fp = FOpen ("pocitadlo.txt", "w");
13 FWrite ($fp, $pocet);
14 FClose ($fp);
15 setcookie('pricteno', 'true', time()+3600); //sekundy - 3600 = 1hodina, 1000 000 = 11dni
16 endif;
17
18 echo ("Navstev: " . $pocet);
19
20 ?>
This page took 0.35466 seconds and 4 git commands to generate.