note 14984 added to features.http-auth.php

From: Date: Thu, 23 Aug 2001 10:31:13 +0000
Subject: note 14984 added to features.http-auth.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17018@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 http://www.php.net/manual/en/features.http-auth.php

« previous php.notes (#17018) next »