PHP Header

Header() must be called before any output is sent. This includes with the standard HTML tags, empty lines, or output from PHP. 

It is common error to read code with require(), or include(), functions, which results in output before header() is called. Likewise, the problem exists when a single PHP/HTML file is used.
Hi welcome to PHP Head, are you looking for a PHP web designer or a PHP programmer? We recommend Newton's Nerds, Computer Repairs Sydney, for all your IT needs.