Hi,
I am trying to invoke the username/password dialog with the following code:
<?
if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))
|| ( $PHP_AUTH_USER != 'admin' ) || ( $PHP_AUTH_PW != 'test' ) ) {
header( ' Basic realm="Admin"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'You are not authorized to access this area.';
exit;
} else {
// content
}
?>
When I run this i get a 500 Internal Server Error, I have tried different ways that work on other machines but get the same error. I think the problem is in the php.ini file, does anyone know where?
Thanks.
I am trying to invoke the username/password dialog with the following code:
<?
if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))
|| ( $PHP_AUTH_USER != 'admin' ) || ( $PHP_AUTH_PW != 'test' ) ) {
header( ' Basic realm="Admin"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'You are not authorized to access this area.';
exit;
} else {
// content
}
?>
When I run this i get a 500 Internal Server Error, I have tried different ways that work on other machines but get the same error. I think the problem is in the php.ini file, does anyone know where?
Thanks.