It means that the header() command must come before any html code that would generate any thing that's sent to the browser. The spaces are the most common because they are easily missed. If you make sure the header() command is on the first line, you should be able to avoid this error.