Apache problem *eller PHP*!
Jeg køre et login script, på localhost *Apache 1.3.19 og PHP4.0.4 pl 1...Men det virker ikke... Jeg får bare fejl 500 *Internal Server Error*
Nogen der kan hjælpe mig ud af det?
Lidt logbøger !
Apache\'s Error.log
[Mon Jun 04 18:20:09 2001] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: c:/apache/php3/php.exe
Apache\'s access.log
127.0.0.1 - - [04/Jun/2001:18:20:09 +0200] \"GET /dagblad/ HTTP/1.1\" 500 602
Ingenting i PHP4\'s error log!
Login scriptet!
<?
$brugernavn = \"dagblad\";
$adgangskode = \"dagblad\";
$ingen_adgang = \"Der kræves et gyldigt brugernavn og adgangskode for at få adgang til dagbladets telefonbog\";
if (!$PHP_AUTH_USER) {
header(\"WWW-Authenticate: Basic realm=\\\"- Dagbladets telefonbog- \\\"\");
header(\"HTTP/1.0 401 Unauthorized\");
echo \"$ingen_adgang\";
exit;
} else {
if ($PHP_AUTH_USER != $brugernavn || $PHP_AUTH_PW != $adgangskode) {
echo \"$ingen_adgang\";
exit;
}
}
?>
