I am trying to set up php with iis on a win2k server. What I am having problems with is when I send the authentication headers in php. I get the "You are not authorized to view this page" error. To be more specific:
HTTP 401.5 - Unauthorized: Authorization by ISAPI or CGI application failed
Internet Information Services
I installed apache and tried it. I get "Internal Server Error". These same scripts work on a linux webserver running apache. Here are the headers that are giving me problems:
<?
header( "WWW-authenticate: basic realm=\"$sec_text ($sec_num)\"");
header( "HTTP/1.0 401 Unauthorized");
echo "Minimum $sec_text level authorization required. Please contact your administrator.";
?>