'true', ]; // allows the web components to determine the OS_RELEASES url if (isset($_GET['altUrl']) && filter_var($_GET['altUrl'], FILTER_VALIDATE_URL)) { $params['altUrl'] = $_GET['altUrl']; } // pass the params to the unraidcheck script for usage in UnraidCheck.php putenv('QUERY_STRING=' . http_build_query($params)); } public function execute(): string { $this->setupEnvironment(); $output = []; exec(self::SCRIPT_PATH, $output); return implode("\n", $output); } } // Usage $checker = new UnraidCheckExec(); echo $checker->execute();