Hello,
I also had this problem. Change of
header("HTTP/1.0 401 Unauthorized");
to
header("Status: 401 Unauthorized");
helped me.
Unfortunately I encountered another problem that I did not solve yet. Nor
$PHP_AUTH_USER and $PHP_AUTH_PW
nor
$headers = getallheaders();
$auth=$headers[Authorization];
work for me. The second one does not work because I use php as cgi for Apache (I use NT and do not know how to make php run as a module). I'm not sure why the first way doesn't work.
Can anybody help me please?
Vasek