Salve, io ho un file php:

Codice PHP:
<body bgcolor="#999999">
<?php
 header
('location: '.$_SERVER['PHP_SELF'].'?msg='."prova");
?>
</body>
l'output di questa pagina è:

codice:
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\prova.php:2) in C:\xampp\htdocs\prova.php on line 3
Ho notato che cercando di impostare il colore di sfondo della pagina mi da sempre quell'errore, a me principalmente interessa poter impostare un colore di sfondo e poter utilizzare header(), come potrei fare?