Mailinglisten-Archive |
hallo Hannes,
>
> nach Umstieg auf php vers. 5.2.4
> funktioniert eine simple HTTP-Authentifizierung nicht mehr.
> hat da jemand eine Idee ?
>>So ganz ohne eine Info rund herum und Code-Snippets kann man schwer
>>was sagen. Gibt's ein paar Infos? ;-)
Windows XP
Server API Apache
und ganz simpel:
$LOGIN = "87cf6552a34d5e945960f14a7b9b30d3";
$PASSWORD = "325aecb610e9ee9786a45d24179e8ed5";
function error ($error_message) {
echo $error_message."<BR>";
exit;
}
if ( (!isset($PHP_AUTH_USER)) || ! (( md5($PHP_AUTH_USER) == $LOGIN ) && (
md5($PHP_AUTH_PW) == $PASSWORD )) ) {
header("HTTP/1.0 401 Unauthorized");
header('WWW-Authenticate: Basic realm="Visitenkarten-Restore"');
error("Unauthorized access...");
}
unter 5.0.5 kein Problem
php::bar PHP Wiki - Listenarchive