Mailinglisten-Archive |
Moin Wolfgang.
Wolfgang Skupin wrote:
> hallo Hannes,
>
>> nach Umstieg auf php vers. 5.2.4
>> funktioniert eine simple HTTP-Authentifizierung nicht mehr.
>> hat da jemand eine Idee ?
> 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
Ich würde auf Register Globals tippen. Versuchs mal mit
$_SERVER['PHP_AUTH_USER'] und $_SERVER['PHP_AUTH_PW'].
Gruß
Alex
php::bar PHP Wiki - Listenarchive