10 lines
255 B
Plaintext
10 lines
255 B
Plaintext
<?php
|
|
header("Access-Control-Allow-Origin: *");
|
|
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
|
|
header("Access-Control-Allow-Headers: Content-Type");
|
|
|
|
// Output JSON
|
|
$unameInfo = exec('uname -a');
|
|
echo json_encode(["uname" => $unameInfo]);
|
|
?>
|