note 14984 deleted from features.http-auth.php by jmcastagnetto

From: Date: Thu, 23 Aug 2001 20:21:12 +0000
Subject: note 14984 deleted from features.http-auth.php by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-17038@lists.php.net to get a copy of this message
hmm this is strange: On my local apache this works fine: if(!isset($PHP_AUTH_USER)) { header("WWW-Authenticate: Basic realm="My Realm""); header("status: 401 Unauthorized"); exit; } else{ echo "$PHP_AUTH_USER with $PHP_AUTH_PW"; } but on the server of my provider is seems like no PHP_AUTH_USER get set at all. I also tried to print out all: $HTTP_SERVER_VARS['PHP_AUTH_USER']; getenv("PHP_AUTH_USER"); getenv("HTTP_SERVER_VARS[PHP_AUTH_USER]"); all are not set... So is there another possibility to get the value of PHP_AUTH_USER i forgot to check out... I've just no more ideas - plz help! Thnx

« previous php.notes (#17038) next »