|
К вопросу о регистрации пользователя:
|
|||
---|---|---|---|
#18+
Помогите пожалуйста начинающему: Беру классический пример: <!doctype html public "-//w3c//dtd html 4.0 transitional//ru"> <HTML> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <meta http-equiv="Content-Language" content="ru"> <HEAD> <TITLE>DEMO.PHP</TITLE> </HEAD> <BODY> <?PHP Header('WWW-Authenticate: Basic realm=\"My Realm\"'); Header("HTTP/1.0 401 Unauthorized"); if(!isset($PHP_AUTH_USER)) { Header('WWW-Authenticate: Basic realm=\"My Realm\"'); Header("HTTP/1.0 401 Unauthorized"); echo "Text to send if user hits Cancel button\n"; exit; } else { echo "Hello $PHP_AUTH_USER.<P>"; echo "You entered $PHP_AUTH_PW as your password.<P>"; } ?> </BODY> </HTML> на экране вижу ошибки: Cannot modify header information - headers already sent by (output started at D:\Program Files\Apache Group\Apache2\htdocs\logon.php:9) in <b>D:\Program Files\Apache Group\Apache2\htdocs\logon.php on line 12 Cannot modify header information - headers already sent by (output started at D:\Program Files\Apache Group\Apache2\htdocs\logon.php:9) in <b>D:\Program Files\Apache Group\Apache2\htdocs\logon.php on line 13 как с этим бороться? ... |
|||
:
Нравится:
Не нравится:
|
|||
27.07.2004, 11:08 |
|
К вопросу о регистрации пользователя:
|
|||
---|---|---|---|
#18+
http://phpfaq.ru/headers ... |
|||
:
Нравится:
Не нравится:
|
|||
27.07.2004, 11:57 |
|
|
start [/forum/topic.php?fid=23&msg=32622840&tid=1479537]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
142ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
others: | 14ms |
total: | 232ms |
0 / 0 |