Files
wsinfra-IT/test.php
2026-03-30 11:51:52 +02:00

12 lines
310 B
PHP

<?php
include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php";
$input = file_get_contents('php://input');
$data = json_decode($input, true);
if (!$data) {
//echo json_encode(["RC" => 1, "stdout" => "Invalid JSON input"]);
echo $_GET['test'];
exit;
}
echo "envoyé : ".$data['test'];
?>