$value) { header(sprintf('%s: %s', $name, $value)); } echo json_encode( $_SESSION[$GLOBALS['SESSION_KEY']]['handler']::getUploadStatus($id) ); } }