function cgi_data() { if (isset($_ENV) && !empty($_ENV)) { return array_merge($_SERVER, $_ENV); } return $_SERVER; }