Hello,
Does anybody have any ideas why the code below is giving me internal server errors?
if (!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm="XYZ Company Admin Area"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
} else if (isset($PHP_AUTH_USER)) {
if (($PHP_AUTH_USER != "admin") || ($PHP_AUTH_PW != "password")) {
header('WWW-Authenticate: Basic realm="XYZ Company Admin Area"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
Do I need to set or change anything in my PHP set-up?
Thanks in advance,
GF.