Stop closing your PHP files
There are 4,030,000 links on Google for "headers already sent by output started" that's four million, thirty thousand pages referencing a problem that is entirely avoidable -- ending your PHP files with a "?>"