Re: PHP and Authentication

From: Date: Tue, 27 Apr 2004 03:07:36 +0000
Subject: Re: PHP and Authentication
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23555@lists.php.net to get a copy of this message
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


« previous php.windows (#23555) next »