if (!isset($_COOKIE['VoltMar'])) { setcookie('VoltMar', '1', time()+3600); $counterFile = "counter.txt"; if (file_exists($counterFile)) { $fa= fopen($counterFile,"r"); $num = fread($fa, filesize($counterFile)); fclose($fa); } $num = $num + 1; $fa = fopen($counterFile,"w"); fwrite($fa, $num, 10); fclose($fa); }; ?>
|