This commit is contained in:
fencl
2024-01-02 11:29:03 +01:00
parent fa79a01b3d
commit 448fca2c21
2 changed files with 9 additions and 2 deletions

View File

@@ -4,9 +4,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
// Uložte hodnotu obličeje (a další data) na serveru
file_put_contents('data.json', json_encode($data));
echo json_encode(['success' => true]);
} else {
echo json_encode(['error' => 'Invalid request method']);
}
?>
// Ladící výstup
error_log(print_r($_POST, true));
error_log(print_r($_FILES, true));

4
test.php Normal file
View File

@@ -0,0 +1,4 @@
<?php
phpinfo();
echo "Hello, world!";
?>