![]() |
От: | Hоmunculus | |
Дата: | 12.09.25 09:33 | ||
Оценка: | +1 |
<?php
$counter_file = 'VisitorsCount.txt';
if (!file_exists($counter_file)) {
$f = fopen($counter_file, 'w');
fwrite($f, '0');
fclose($f);
}
$f = fopen($counter_file, 'r');
$counter_value = (int)fread($f, filesize($counter_file));
fclose($f);
$counter_value++;
$f = fopen($counter_file, 'w');
fwrite($f, $counter_value);
fclose($f);
?>
<body>
<img style="display: none;" src="vis.php">
<!--This will run RunFromHTML.php-->
</body>