Windows 2000 Advanced server trying to do a - header("WWW-Authenticate: Basic realm=\"Admin\"")

From: Date: Thu, 19 Jul 2001 06:39:52 +0000
Subject: Windows 2000 Advanced server trying to do a - header("WWW-Authenticate: Basic realm=\"Admin\"")
Groups: php.windows 
Request: Send a blank email to php-windows+get-8385@lists.php.net to get a copy of this message
Hi, im trying to get ie to throw up a www-authenticate box for username / password input. im running windows 2000 advanced server and php 4.0 the code im using (trying to anyway) <?php if (!isset($PHP_AUTH_USER)) Header("WWW-Authenticate: Basic realm=\"Admin\""); Header("HTTP/1.0 401 Unauthorized"); $REMOTE_USER = ""; $REMOTE_PASSWORD = ""; $PHP_AUTH_USER = ""; $PHP_AUTH_PW = ""; print "You hit cancel! if it was an accident please <a href=\"$PHP_SELF\">click here</a> to try again."; exit; } else if ((!$PHP_AUTH_USER == "user") && ($PHP_AUTH_PW == "pass")) print "You are unauthorized"; } ?> it doesn't throw up the password box and just assumes that the two variables are not set (which they wont be because the box never showed anyway) Please help sched some light onto this subject Cheers

« previous php.windows (#8385) next »