Kc2lto - Andrew Ragone wrote:

Hello, one of the servers I am working on is being switched from UNIX to
Windows. There is nothing I can do about this but I am wondering how to get
the former USER_AUTH and such variables to work with IIS through a popup
login window. I noticed that it still works with PhpMyAdmin.

Well, did you read the manual? http://www.php.net/features.http-auth

If you wanted to, you could just define the constants yourself and leave the rest of the script alone. For example with the ISAPI modules:

if (!defined (PHP_AUTH_PW) && !defined (PHP_AUTH_USER)) {
list($user, $pw) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
define ('PHP_AUTH_PW', $pw);
define ('PHP_AUTH_USER', $user);
}





Thanks

______________

Andrew Ragone

Kc2LTO

www.lifeonedge.com

201.406.0298







-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to