Re: iis HTTP auth scripted in PHP4
| From: | Andy Hoffman | Date: | Mon, 30 Oct 2000 20:20:43 +0000 |
| Subject: | Re: iis HTTP auth scripted in PHP4 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3591@lists.php.net to get a copy of this message | ||
Martin McWhorter wrote:
> I am trying to script HTTP authentication in PHP4 using iis4 (pronounced
> two-S-four) as the web server.
>
> I have followed a couple of examples (mostly in php3) but have had no
> success.
>
> This is one that I have translated from php3 to four... but I still have
> no luck. As well in my php.ini I turned global variables on (so that
> $PHP_AUTH_USER and $PHP_AUTH_PW get passed back to the script) but still
> I get no luck.
Martin,
As confirmed in the php manual (www.php.net/manual), the $PHP_AUTH* variables
are ONLY available under Apache, not IIS. In order to use these vars and the
header functions associated with them, you would need to run Apache web server.
Sorry if that doesn't make your day, but that's the way the PHP developers made
it.
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com