В чём ошибка в следующем коде?
header("Content-Type: text/html; charset=utf-8");
session_start();
include('templates/PHP/header.html');
if($_GET['action'] == 'logout')
{
unset($_SESSION['login']);
header('Location: http://$_SERVER[HTTP_HOST]');
}
if(!empty($_SESSION['login'])) include('profile.php');
else include('templates/PHP/auth.html');
include('templates/PHP/footer.html');
Warning: Cannot modify header information - headers already sent by (output started at W:\domains\testTask\templates\PHP\header.html:19) in W:\domains\testTask\index.php on line 8