Client side PHP problem (HTTP authentication is a nogo)

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
scr0p
Forum Newbie
Posts: 23
Joined: Mon May 05, 2003 6:49 pm
Location: NY

Client side PHP problem (HTTP authentication is a nogo)

Post 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
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post 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.
scr0p
Forum Newbie
Posts: 23
Joined: Mon May 05, 2003 6:49 pm
Location: NY

Post 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.'
scr0p
Forum Newbie
Posts: 23
Joined: Mon May 05, 2003 6:49 pm
Location: NY

Post 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
Post Reply