[PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010


If we are using the default Apache/PHP authentication, it will always pop up the 
default login window for login user ID /password.   Is there a method to redirect to a 
customized PHP login page instead of the default pop up window?

Thanks ahead.

-- 
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] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth

Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and
$PHP_AUTH_PW. Don't send the header() for the 403.

Cheers
Jon


-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:18
To: [EMAIL PROTECTED]
Subject: [PHP] Is there a way not to pop up the default login window?



If we are using the default Apache/PHP authentication, it will always
pop up the default login window for login user ID /password.   Is there a
method to redirect to a customized PHP login page instead of the default pop
up window?

Thanks ahead.


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
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] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010


Thanks for the suggestion. I think I didn't explain it clearly, what I really want to 
do is: whenever someone types any of the secured URL (it might be any secured php page 
or other files), how can we configure the server to automatically redirect to a 
customized PHP login page instead of popping up the default login window?

Regards.



-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 11:36 AM
To: 'Zhu George-CZZ010'; [EMAIL PROTECTED]
Subject: RE: [PHP] Is there a way not to pop up the default login
window?


Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and
$PHP_AUTH_PW. Don't send the header() for the 403.

Cheers
Jon


-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:18
To: [EMAIL PROTECTED]
Subject: [PHP] Is there a way not to pop up the default login window?



If we are using the default Apache/PHP authentication, it will always
pop up the default login window for login user ID /password.   Is there a
method to redirect to a customized PHP login page instead of the default pop
up window?

Thanks ahead.


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
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] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth

if (!isset ($PHP_AUTH_USER)) { 
header (Location: http://mydomain.com/mypage;);
}

would probably do the trick

Cheers
Jon


-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:51
To: Jon Haworth; [EMAIL PROTECTED]
Subject: RE: [PHP] Is there a way not to pop up the default login
window?



Thanks for the suggestion. I think I didn't explain it clearly, what I
really want to do is: whenever someone types any of the secured URL (it
might be any secured php page or other files), how can we configure the
server to automatically redirect to a customized PHP login page instead of
popping up the default login window?

Regards.



-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 11:36 AM
To: 'Zhu George-CZZ010'; [EMAIL PROTECTED]
Subject: RE: [PHP] Is there a way not to pop up the default login
window?


Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and
$PHP_AUTH_PW. Don't send the header() for the 403.

Cheers
Jon


-Original Message-
From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
Sent: 01 November 2001 17:18
To: [EMAIL PROTECTED]
Subject: [PHP] Is there a way not to pop up the default login window?



If we are using the default Apache/PHP authentication, it will always
pop up the default login window for login user ID /password.   Is there a
method to redirect to a customized PHP login page instead of the default pop
up window?

Thanks ahead.


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

-- 
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]