Warning: Cannot modify header information - headers already sent by (output started at R:\home\test.loc\www\config.php:1) in R:\home\test.loc\www\modules\registration\registration.php on line 17
<?php
if(isset($_POST['login'],$_POST['password'])) {
$errors = array();
if(empty($_POST['login'])) {
$errors['login'] = '<span class="red">Вы не ввели логин</span><br><br>';
}
if(empty($_POST['password'])) {
$errors['password'] = '<span class="red">Вы не ввели пароль</span><br><br>';
}
if(!count($errors)) {
mysqli_query($sql,"
INSERT INTO `users` SET
`login` = '".mysqli_real_escape_string($sql,$_POST['login'])."',
`password` = '".mysqli_real_escape_string($sql,$_POST['password'])."'
");
$_SESSION['regok'] = 'ok';
header("Location: /index.php?module=static&page=main");
exit();
17 строка где ошибка
header("Location: /index.php?module=static&page=main");
На ирбисе все работало адекватно , а на денвере вон че кричит
:ph34r: :ph34r: :ph34r: