Logica de la pagina web construida

This commit is contained in:
2021-05-23 12:02:17 -03:00
parent f0e1ac99ec
commit d1cc880a25
2 changed files with 17 additions and 2 deletions

View File

@@ -2,7 +2,14 @@
require 'logic.php';
$c = 665;
if (file_exists('./visits.txt')) {
$c = file_get_contents('./visits.txt');
$c++;
} else {
$c = 'Error, el archivo visits.txt no existe';
}
?>
@@ -24,4 +31,11 @@ $c = 665;
</div>
</div>
</body>
</html>
</html>
<?php
if (file_exists('./visits.txt')) {
file_put_contents('./visits.txt', $c);
}
?>

1
visits.txt Normal file
View File

@@ -0,0 +1 @@
0