Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jaki "header"
Mayewsky
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.02.2004

Ostrzeżenie: (0%)
-----


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
*****
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
kszychu
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 712
Pomógł: 23
Dołączył: 27.10.2003
Skąd: z kontowni

Ostrzeżenie: (0%)
-----


A TEN tzn. jaki?

P.S. Wiem, że niektórzy (np ja (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif) ) wyglądają na jasnowidzów, ale tak nie jest i czasami warto napisać coś więcej.
Go to the top of the page
+Quote Post
spenalzo
post
Post #3





Grupa: Zarejestrowani
Postów: 2 064
Pomógł: 1
Dołączył: 22.01.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


A nie HTTP/1.1 ?
Go to the top of the page
+Quote Post
Mayewsky
post
Post #4





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 22.02.2004

Ostrzeżenie: (0%)
-----


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"); ?>
**********
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 23:23