It took some digging on the PHP-Win Archive but I found the answer a long time ago... First you have to be running PHP as an Apache module (not a CGI), and there was an extra .dll to load. Sorry I'm not more specific, but I just can't seem to remember the details. Hope this points you in the right direction.
Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:28 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] PHP Authentication We just switched servers from Unix to Windows NT and all our authentication stopped working. It brings up an internal server error. We installed the newest PHP and the newest Apache software. Pretty much everything else works, except the authentication won't work. I've tried many different versions of the code. Here is the last version that I tried. Any ideas on what might be causing this server error? <?php if (!isset($PHP_AUTH_USER)){ header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else { echo 'Success!'; } ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php