Здраствуйте.
Случилась проблема такая: после перезапуска Денвера (забыл выйти из игры "выходом") начало писать следующее:
Notice: Undefined index: PHP_AUTH_USER in x:\home\bk\admin\index.php on line 3
[Денвер: показать возможную причину ошибки]
Notice: Undefined index: PHP_AUTH_PW in x:\home\bk\admin\index.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at x:\home\bk\admin\index.php:3) in x:\home\bk\admin\index.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at x:\home\bk\admin\index.php:3) in x:\home\bk\admin\index.php on line 7
You must enter a valid login ID and password to access this resource
Привожу строчки в этих файлах:
admin\index.php строка 3 - $client_username = $_SERVER['PHP_AUTH_USER'];
admin\index.php строка 4 - $client_password = $_SERVER['PHP_AUTH_PW'];
admin\index.php строка 6 - header('WWW-Authenticate: Basic realm="MW-DS Studio"');
admin\index.php строка 7 - header('HTTP/1.0 401 Unauthorized');
В чём может быть проблема? Действительно в том, что я не вышел? Помогите!
Заранее спасибо.
Случилась проблема такая: после перезапуска Денвера (забыл выйти из игры "выходом") начало писать следующее:
Notice: Undefined index: PHP_AUTH_USER in x:\home\bk\admin\index.php on line 3
[Денвер: показать возможную причину ошибки]
Notice: Undefined index: PHP_AUTH_PW in x:\home\bk\admin\index.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at x:\home\bk\admin\index.php:3) in x:\home\bk\admin\index.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at x:\home\bk\admin\index.php:3) in x:\home\bk\admin\index.php on line 7
You must enter a valid login ID and password to access this resource
Привожу строчки в этих файлах:
admin\index.php строка 3 - $client_username = $_SERVER['PHP_AUTH_USER'];
admin\index.php строка 4 - $client_password = $_SERVER['PHP_AUTH_PW'];
admin\index.php строка 6 - header('WWW-Authenticate: Basic realm="MW-DS Studio"');
admin\index.php строка 7 - header('HTTP/1.0 401 Unauthorized');
В чём может быть проблема? Действительно в том, что я не вышел? Помогите!
Заранее спасибо.