Here's the snippet that is breaking:
##################
if (!isset($PHP_AUTH_USER)) {
//if empty, send header causing a dialog box to appear
header('WWW-Authenticate: Basic realm="My Private Stuff" ');
header('HTTP/1.0 401 Unauthorized');
echo "Authorization Required.";
exit;
}
########################
########################
Here is the apache error log:
[Wed Jan 17 22:09:50 2001] [error] [client 208.37.96.157] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: d:/apache/modules/php4/php.exe
########################
I'm trying to get http authentication to work on my Windows ME PHP 4.04 running on apache 1.3.14
I did not set up any configuration in the httpd.conf file for directorys, but I'm going the route of a DB check against the password.
Anyone know of some documentation on this?