I used the header() function to process user authorization.My code just like this:
<?php
Header("WWW-Authenticate: Basic realm=\"Member\"");
Header("HTTP/1.0 401 Unauthorized");
?>
But when I exec it, system shows the 500 error:internal server error.And the Apache error log shows:[Tue Aug 10 01:23:55 1999] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: c:/php4/php.exe.
Could someone please tell me the reason and how I can deal with it?
Thanks
Quan