I am sure this has been covered many times before - and yes - a quick search on this forum shows: -
A description of the problem here
One lengthy forum posting here
Ultimately, you have had output dumped to the browser and then tried to write a header (location, session or cookie). Make sure you don't do ANY output before this and make sure you have no blank lines at the beginning of any of your PHP files starting <?php