[PHP] IIS and PHP authorization

2001-01-27 Thread Shane McBride

I finally got PHP, MySQL and Win2k installed after a long hard battle with a Promise 
Ultra/66 controller card. Now, PHP seems to work fine exceot when I have a script that 
requires authorization, I never get the popup box to input the login and password. 
Here's the script:



Any ideas?

TIA- Shane



Re: [PHP] IIS and PHP authorization

2001-01-27 Thread Rasmus Lerdorf

If you are using the CGI version of PHP then this won't work.  You can't
do HTTP auth from the CGI version.

-Rasmus

On Sun, 28 Jan 2001, Shane McBride wrote:

> I finally got PHP, MySQL and Win2k installed after a long hard battle with a Promise 
>Ultra/66 controller card. Now, PHP seems to work fine exceot when I have a script 
>that requires authorization, I never get the popup box to input the login and 
>password. Here's the script:
>
>// Include the setup password file
>   require 'setup.inc';
>
>   // Check to see if $PHP_AUTH_USER already contains info
>   if (!isset($PHP_AUTH_USER)) {
> // If empty, send header causing dialog box to appear
>  header('WWW-Authenticate: Basic realm="The Merchant Power Setup Area"');
>  header('HTTP/1.0 401 Unauthorized');
>  echo 'Authorization Required!';
>  exit;
>   } else if (isset($PHP_AUTH_USER)) {
>  if (($PHP_AUTH_USER !=$SETUP_USER) || ($PHP_AUTH_PW !=$SETUP_PASS)) {
>header('WWW-Authenticate: Basic realm="The Merchant Power Setup Area"');
>header('HTTP/1.0 401 Unauthorized');
>echo 'Authorization Required!';
>exit;
> }
>  }
> ?>
>
> Any ideas?
>
> TIA- Shane
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] IIS and PHP authorization

2001-01-27 Thread Shane McBride

I thought PHP would only run as CGI on IIS? Right now I'm trying to config
Apache.

- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Shane McBride" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2001 9:44 PM
Subject: Re: [PHP] IIS and PHP authorization


> If you are using the CGI version of PHP then this won't work.  You can't
> do HTTP auth from the CGI version.
>
> -Rasmus
>
> On Sun, 28 Jan 2001, Shane McBride wrote:
>
> > I finally got PHP, MySQL and Win2k installed after a long hard battle
with a Promise Ultra/66 controller card. Now, PHP seems to work fine exceot
when I have a script that requires authorization, I never get the popup box
to input the login and password. Here's the script:
> >
> >  >   // Include the setup password file
> >   require 'setup.inc';
> >
> >   // Check to see if $PHP_AUTH_USER already contains info
> >   if (!isset($PHP_AUTH_USER)) {
> > // If empty, send header causing dialog box to appear
> >  header('WWW-Authenticate: Basic realm="The Merchant Power Setup
Area"');
> >  header('HTTP/1.0 401 Unauthorized');
> >  echo 'Authorization Required!';
> >  exit;
> >   } else if (isset($PHP_AUTH_USER)) {
> >  if (($PHP_AUTH_USER !=$SETUP_USER) || ($PHP_AUTH_PW !=$SETUP_PASS)) {
> >header('WWW-Authenticate: Basic realm="The Merchant Power Setup
Area"');
> >header('HTTP/1.0 401 Unauthorized');
> >echo 'Authorization Required!';
> >exit;
> > }
> >  }
> > ?>
> >
> > Any ideas?
> >
> > TIA- Shane
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] IIS and PHP authorization

2001-01-27 Thread Rasmus Lerdorf

There is an ISAPI module.

On Sun, 28 Jan 2001, Shane McBride wrote:

> I thought PHP would only run as CGI on IIS? Right now I'm trying to config
> Apache.
>
> - Original Message -
> From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
> To: "Shane McBride" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, January 27, 2001 9:44 PM
> Subject: Re: [PHP] IIS and PHP authorization
>
>
> > If you are using the CGI version of PHP then this won't work.  You can't
> > do HTTP auth from the CGI version.
> >
> > -Rasmus
> >
> > On Sun, 28 Jan 2001, Shane McBride wrote:
> >
> > > I finally got PHP, MySQL and Win2k installed after a long hard battle
> with a Promise Ultra/66 controller card. Now, PHP seems to work fine exceot
> when I have a script that requires authorization, I never get the popup box
> to input the login and password. Here's the script:
> > >
> > >  > >   // Include the setup password file
> > >   require 'setup.inc';
> > >
> > >   // Check to see if $PHP_AUTH_USER already contains info
> > >   if (!isset($PHP_AUTH_USER)) {
> > > // If empty, send header causing dialog box to appear
> > >  header('WWW-Authenticate: Basic realm="The Merchant Power Setup
> Area"');
> > >  header('HTTP/1.0 401 Unauthorized');
> > >  echo 'Authorization Required!';
> > >  exit;
> > >   } else if (isset($PHP_AUTH_USER)) {
> > >  if (($PHP_AUTH_USER !=$SETUP_USER) || ($PHP_AUTH_PW !=$SETUP_PASS)) {
> > >header('WWW-Authenticate: Basic realm="The Merchant Power Setup
> Area"');
> > >header('HTTP/1.0 401 Unauthorized');
> > >echo 'Authorization Required!';
> > >exit;
> > > }
> > >  }
> > > ?>
> > >
> > > Any ideas?
> > >
> > > TIA- Shane
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] IIS and PHP authorization

2001-01-29 Thread Ernest E Vogelsinger

At 06:48 28.01.2001, Rasmus Lerdorf said:
[snip]
>There is an ISAPI module.
[snip] 

yes, which is more than unstable as I found... Using a good machine (2xXeon
550, 512 MB, NT4/SP6a/IIS4) it constantly crashed being a filter, and
crashed being used as MIME plugin latest at the 6th page access.


 ...ebird

   >O Ernest E. Vogelsinger
   (\)http://www.1-at-web.at/
^ ICQ#   13394035


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] IIS and PHP authorization

2001-01-30 Thread James Moore


> [snip]
> >There is an ISAPI module.
> [snip]
>
> yes, which is more than unstable as I found... Using a good
> machine (2xXeon
> 550, 512 MB, NT4/SP6a/IIS4) it constantly crashed being a filter, and
> crashed being used as MIME plugin latest at the 6th page access.

Yes unfortuanly on NT 4 and IIS 4 PHP ISAPI is reported as unstable, but, I
would say that PHP is getting *TOWARDS* production quality on IIS 5 and Win
2k. Just a few more querks to fix and then I think that once this is done it
would be usable under win 2k and IIS 5 as ISAPI.

James


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]