View Single Post
Old 06-08-2003, 04:42 AM  
Tipsy
Confirmed User
 
Join Date: Jul 2001
Location: See sig
Posts: 6,989
Quote:
Originally posted by SpaceAce


We might be thinking of two different problems. When the authentication box pops up and I put in my username, for some reason the script always thinks my username was left blank. So, it doesn't even try to check my password against the "users" table because it thinks I didn't enter a username. The script always quits at this point

if ((!isset($_SERVER[PHP_AUTH_USER])) || ($_SERVER[PHP_AUTH_USER] hahahaha "")){

because $_SERVER[PHP_AUTH_USER] equals null even though I typed in a username when the auth box popped up in my browser. Because it thinks there is no username, it never even gets to this part:

$pass_query = "SELECT rtrim(password),access,email FROM users WHERE userid='".$_SERVER[PHP_AUTH_USER]."'";

For some reason, $_SERVER[PHP_AUTH_USER] never has anything in it.

SpaceAce

Now I'm going to have to looksee. I really can't even remember the details only that the problem was similar. The script was getting a NULL when it expected something. I'll see if I can find it so I know what the hell I'm talking about (there's a first time for everything )
__________________
Ignorance is never bliss.
Tipsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote