You're flushing the buffer at the end of the globals script, turning off the buffering, so if you had something like
header('...'); // this will work, no output yet
include('globals.php'); // flushes buffers, stops buffering, starts output
header('...'); // fails with "headers already send"
if you're doing any header() calls AFTER you include the globals file, then globals should NOT be flushing the buffers.