it doesn't works in my pc. i have win2k.

>
> try editing the index to use this:
>
> <?
>      // checks if you have entered a username and a password
>      if (!$PHP_AUTH_USER || !$PHP_AUTH_PW)
>      {
>          // if empty, send header causing dialog box to appear
>          header('WWW-Authenticate: Basic realm="PHPMyAdmin Realm"');
>          header('HTTP/1.0 401 Unauthorized');
>          echo "Authorization Required.";
>          exit;
>      }
>      else
>      {
>          // check if the username and password are correct
>          if (($PHP_AUTH_USER == "sigferd") && ($PHP_AUTH_PW ==
"doodlepip"))
>          {
>              // dispay happy message and admin stuff
>              echo "w00t!";
>          }
>          else
>          {
>              // display angry message for invalid user
>              echo "go away!";
>          }
>      }
> ?>
>
>
> *or*, try setting up an .htpasswd to require anything under /phpmyadmin
(or
> whatever folder it is....) to require a password to GET or POST
> <-- I'm sure someone else on this list could explain that one though
>
> regards,
> -andrew saturn
>
>
>
> --
> PHP Windows 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 Windows 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]

Reply via email to