ugrás a tartalomhoz

Archívum - Ápr 30, 2002 - Fórum téma

Win98SE + Apache 1.3.24 + PHP 4.1.2

Hdd · 2002. Ápr. 30. (K), 19.41
Van egy php scriptem ami olyan fejlécet küld vissza, hogy a felhasználót azonosítni kellene, de a szerver belső hibára utaló
hibaüzenetet küld.
Tudna valaki segíteni, hogy hogy tudnám megoldani a problémát?
Fontos lenne.

Íme a script:
<?php
if(!isset($PHP_AUTH_USER))
{
header("WWW-Authenticate: Basic realm=\"Azonositás indoka\"");
header("HTTP/1.0 401 Unauthorized");
echo "Ez jelenik meg, ha a Cancel gombot nyomja a felhasználó\n";
exit;
}
else
{
echo "<p>Helló $PHP_AUTH_USER.</p>";
echo "<p>A megadott jelszavad: $PHP_AUTH_PW.</p>";
}
?>

A server meg ezt mondja:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, hdd##kukac##nc-studio.com 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."

Error.log:
"[Mon Apr 29 20:59:34 2002] [error] [client 192.168.0.2] malformed header from script. Bad header=HTTP/1.0 401
Unauthorized: c:/php/php.exe"

Gép konfiguráció:
486DX4
Win98SE
Apache 1.3.24
PHP 4.1.2