Re: phpmyadmin

From: Date: Mon, 22 Oct 2001 04:13:38 +0000
Subject: Re: phpmyadmin
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9948@lists.php.net to get a copy of this message
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: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#9948) next »