The following script fails with the todays snapshot and with PHP 4.3.0-pre1:
<?php if (!isset($PHP_AUTH_USER)) { header("WWW-Authenticate: Basic realm=\"Foobar\""); header("HTTP/1.0 401 Unauthorized"); echo "Access denied."; exit; } else { echo "Hello"; } ?> I looks like $PHP_AUTH_(USER|PW) are not set properly. Register_globals is set to on, but the same problem also occurs when setting it to off and using $_SERVER['PHP_AUTH_USER'] then. (Apache 1.3.26, Linux) Any clues? -- - Martin Martin Jansen http://martinjansen.com/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php