Yeah, it's not a whitespace problem... that was one of the first things I looked for. It seems to happen only when code requiring global.php it put after html. I finally gave up on it and just put the code above all of the html on the page.
I'm having another problem now where global.php is 'breaking' some database query code that I'm using to display newest additions to the database. The code works fine by itself, but when I add it to my template (which has the require(global.php) stuff at the top, it no longer works. It's making it really difficult to integrate the user authentication system with the rest of my site
If I knew what was needed from global.php for the user authentication and cookie management to work, I'd just cut and paste that stuff into a seperate file and use that. The extra code that sets headers, checks if the board is active, etc.. probably isn't needed for the rest to work.
-Tom