OK I have been trying all kinds of ways to get ether an Array from my Database of usernames and passwords (MD5) But...... I can not get past the popup with WWW-Authenticate it just doesnt seam to connect so I tryed a file with a array with pop ups and have the same problem could you help me out... what I got ATM is
if ($_SERVER['PHP_AUTH_USER'] != "USER" || $_SERVER['PHP_AUTH_PW'] != "PASSWORD")
{
header('WWW-Authenticate: Basic realm="Gamelords Canada, Administration Panel"');
header('HTTP/1.0 401 Unauthorized');
echo "<B>Error 401</B>, you are Unauthorized to access this webpage.";
exit;
}
If ya know of a way to connect to the DB and get the array I would appreate it. Thanks or at lease show me how to get username and password form a array I can probly figure out how to get the array from the Database I just cant get past the array part.
As well I also need some way to unset the $_SERVER string and I tryed the UNSET command wich it doesnt work. I know that the user can close the browers to unset it but is there a command that I can use so they dont have to and can be sent back to my main page that doesnt require Closing the browers.