Background info:
I have windows 98 SE, Apache 1.3.20 and PHP 4.0.6 installed as a module. The page is NOT in a folder with a .htaccess file.
I just can't seem to get the php_auth_user to work.
I've had the prompt box pop up and entered the user name and password but it doesn't accept anything.
Here's the script:
It seems as though the prompt is not saving the stuff i typed in the $PHP_AUTH_USER and for the password. I've successfully used a .htaccess file but i just can't seem to even get the PHP auth. started.PHP Code:<?php
if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
echo "Text to send if user hits Cancel button\n";
exit;
} else {
echo "Hello $PHP_AUTH_USER.<P>";
echo "You entered $PHP_AUTH_PW as your password.<P>";
}
?>
I've tried many tutorials but with no success. I'm not sure if it's a server config that needs to be changed or what.
*sigh* - deeply frustrated.




Bookmarks