Hello- I was wondering if anyone could help me out- I cannot get the PHP authentication dialog box to pop up. I get an internal server error with this code:
<?php
if (!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm="My Private Stuff"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}
else {
echo "<P>You have entered this username: $PHP_AUTH_USER<br>You have entered this password: $PHP_AUTH_PW<br>The authorization type is: $PHP_AUTH_TYPE</p>";
}
?>
Any ideas would be greatly appreciated, Thanks.