On Wed, Feb 14, 2001 at 11:07:46PM -0800, Thomas Edison Jr. wrote:
> The code I'm entering is:
>
> <?php
> if(!isset($PHP_AUTH_USER)) {
> Header("WWW-Authenticate: Basic realm=\"My Realm\"");
> Header("HTTP/1.0 401 Unauthorized");
> echo "Text to send if user hits Cancel button\n";
> exit;
> } else {
> echo "Hello $PHP_AUTH_USER.<P>";
> echo "You entered $PHP_AUTH_PW as your password.<P>";
> }
> ?>
I'm not sure what is wrong. I copied and pasted this onto my system and
it works just fine.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Soitainly. I was assuming that came with the OO-ness of it.
-- Larry Wall in <[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]