I've installed a later version of PHP (4.3.9) and find my http authentication scripts no longer work. What's happening is the variables $_SERVER['PHP_AUTH_USER'] and $PHP_AUTH_USER aren't set after filling out the user/password popup form. I'm running Apache 1.3. I tried setting register_globals = on (also tried off) and tried safe_mode = on (and off) and no combination seems to work. The code I'm testing it with is:
PHP Code:
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
'Text to send if user hits Cancel button';
  } else {
"<p>Hello {$_SERVER['PHP_AUTH_USER']}.</p>";
"<p>You entered {$_SERVER['PHP_AUTH_PW']} as your password.</p>";
Any tips on what I could try to get it going would be deeply appreciated as I'm going a little mad trying to solve this (or face having to rewrite all my websites)