Mayewsky
25.02.2004, 18:55:13
Hej, dla was to pewnie śmieszne pytanie, ale jaki "header" powinienem mieć skoro ten jest zły ?
oto logi :
*****
[Tue Feb 24 18:53:12 2004] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: c:/apache/php/php.exe
*****
kszychu
26.02.2004, 12:56:10
A TEN tzn. jaki?
P.S. Wiem, że niektórzy (np ja

) wyglądają na jasnowidzów, ale tak nie jest i czasami warto napisać coś więcej.
Mayewsky
26.02.2004, 13:05:29
No mam coś takiego. Nie moge oczywiście sie zalogować, bo nie widze nawet okienka logowania, od razu wywala mi błąd na stronie o treści :
**********
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.23 Server at localhost Port 80
**********
Zmiana Globals ON tez nic nie daje.
A poniżej ten kod nagłówka.
*********
if ((($PHP_AUTH_PW!=$haslo_log) || ($PHP_AUTH_PW==""))
{
Header("WWW-authenticate: basic realm="logowanie"");
Header("HTTP/1.0 401 Unauthorized"); ?>
**********