hi
i'm trying to do user authentication.. this is the code..
header('WWW-Authenticate: Basic realm="Private"'); header('HTTP/1.0 401 Unauthorized'); exit;
but i got server internal error saying "malfunction header from script. Bad Header=HTTP/1.0 401 Unauthorized: c:/php/php.exe"
In the CGI version of PHP (at least under Windows), you have to do the following to return an HTTP status code :
Header("Status: 401 Unauthorized");
Don't ask me why, I don't know. If someone has the answer, I'll be glad to hear...
thanks a lot.. it works now