From 6e42f8e56dedeae9dd7607db10009bcb28a6b6a0 Mon Sep 17 00:00:00 2001 From: jerome Date: Tue, 30 Nov 2021 12:01:55 +0100 Subject: [PATCH] API api_connexions.php --- api/api_connexions.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 api/api_connexions.php diff --git a/api/api_connexions.php b/api/api_connexions.php new file mode 100644 index 0000000..2902634 --- /dev/null +++ b/api/api_connexions.php @@ -0,0 +1,17 @@ + $conn) { + $conn["machine"] = $machine; // ajout d'un champ dans le hash $conn + array_push($tableau_connexions, $conn); +} + +$json_connexions = json_encode($tableau_connexions); +echo($json_connexions); + +?> \ No newline at end of file