Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Jaki "header"
Forum PHP.pl > Forum > Serwery WWW > Apache
Mayewsky
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
A TEN tzn. jaki?

P.S. Wiem, że niektórzy (np ja laugh.gif ) wyglądają na jasnowidzów, ale tak nie jest i czasami warto napisać coś więcej.
spenalzo
A nie HTTP/1.1 ?
Mayewsky
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"); ?>
**********
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.