[Tue Jul 04 15:57:38 2000] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: c:/apache/php/php.exe
This is the entry I get in my logfile while trying to authenticate via mysql.
The error is caused by the following lines:
header('WWW-Authenticate: Basic realm="Private"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
I've got apache and mysql running locally on a win95 box and it generally works fine (as long as the code is right it works flawlessly). I believe this must be a setup problem within my httpd.conf file or something like that. Can someone please advise.
Thanks