<?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]); ?>