Add radar/update.php

This commit is contained in:
2026-01-02 21:02:54 +01:00
parent 0de3253e44
commit a890de5a5c

11
radar/update.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
// Controleer of afstand is meegestuurd
if(isset($_POST['afstand'])) {
$afstand = intval($_POST['afstand']); // integer
// Sla de waarde op in een tekstbestand
file_put_contents('afstand.txt', $afstand);
echo "OK";
} else {
echo "No data";
}
?>