This question has already been answered:
Gives an error - Cannot modify header information - headers already by (output started at Z: \ home \ localhost \ www \ index.php: 1) in Z: \ home \ localhost \ www \ index.php on line 1
$db_host = 'localhost'; $db_user = 'root'; $db_password = ''; $db_database = 'newster'; $db_server = mysql_connect($db_host, $db_user, $db_password); if(!db_server) die("Don`t connect is mysql" . mysql_error()); mysql_select_db($db_database) or die("Don`t select DB " . mysql_error()); header ('Location: views/index.html');
t connect is MySQL" и "Don
t select DB" killed :) - void