The following piece of code is used to login to a page. This works fine on my Unix server, but some users are having problems when it's installed on a Windows NT/2000 server. Does anyone know why or does anyone know how to fix it for Windows NT/2000?
<?php
$LOGIN = "Username";
$PASSWORD = "Password";
function error ($error_message) {
echo $error_message."<BR>";
exit;
}
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $LOGIN) && ( $PHP_AUTH_PW == "$PASSWORD" )) ) {
header("WWW-Authenticate: Basic entrer=\"Form2txt admin\"");
header("HTTP/1.0 401 Unauthorized");
error("Unauthorized access...");
}
?>