PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
If you even so much as let a blank white space through to the browser, the headers have been sent. You always want to call header related functions before anything is output to the browser. Anything.