Page 1 of 1

Client side PHP problem (HTTP authentication is a nogo)

Posted: Mon May 05, 2003 6:49 pm
by scr0p
Ok, http://www.team-od.com/auth1.php <-- this will ask for name/pw and when you put any name, itll greet you, BUT when I try this locally (Apache, PHP 4.3.0 on my windowsXP).. It keeps asking for name/pw, even tho it doesnt even validate htem and I know I put the right values (if it did validate, I tried a lot).. Then it says access denied.

I don't know whats wrong, how do I 'enable' authentication locally? I have something misconfigured. IE6

Posted: Tue May 06, 2003 1:57 am
by []InTeR[]
How do you use the variables,
maybe the offline version doesn't know the vars u are using. (superglobals, sessions).

Maybe debug a bit, echo the var's before checking them in the database.

Then echo if your session is set.

Posted: Tue May 06, 2003 6:34 pm
by scr0p
I tried both, $_SERVER['$PHP_AUTH_USER'] and $PHP_AUTH_USER, If I just simply want to echo $PHP_AUTH_USER, it doesn't work, it doesnt even need to validate, all the code does is check if $PHP_AUTH_USER is set, if so, then echo 'woo your in' else echo 'Wrong.'

Posted: Wed May 07, 2003 2:40 pm
by scr0p
PHPinfo() says "Server API CGI/FastCGI".. does this mean I am in CGI mode? I updated to PHP 4.3.1, and I isntalled the zip binary dist, copied the php ini file, and added LoadModule php_dir/sapi/php4apache2.dll and addtype line, what am I missing? I can not use gd, MySQL or auth.. apache2, winXP, PHP4.3.1