My php header() function is not working [closed]

I figured it out. Hours and hours of banging my head against a wall and it turns out all this needed was one simple line:

ob_clean();

Somewhere in some included file there’s probably one line of whitespace that is screwing things up. ob_clean() will work for now. Thanks for the effort everyone who helped!