initial commit
This commit is contained in:
12
test.php
Normal file
12
test.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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'];
|
||||
?>
|
||||
Reference in New Issue
Block a user