Error en rutina de seguridad
Publicado por Ricardo (2 intervenciones) el 02/06/2003 16:45:13
Tengo el siquiente código ;
<?php
if (!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm="Acceso restringido"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}
else {
echo "Ha introducido el nombre de usuario: $PHP_AUTH_USER<br>";
echo "Ha introducido la contraseña: $PHP_AUTH_PW<br>";
}
?>
y cuando abro la página me muestra el siguiente error :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at localhost Port 80
¿Cual es el maldito problema, ya que me he vuelto mono buscandolo?
Ahhh, tengo PHP 4.0, APACHE Y MYSQL Corriendo bajo Win98 (PHPTriad)
<?php
if (!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm="Acceso restringido"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
}
else {
echo "Ha introducido el nombre de usuario: $PHP_AUTH_USER<br>";
echo "Ha introducido la contraseña: $PHP_AUTH_PW<br>";
}
?>
y cuando abro la página me muestra el siguiente error :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at localhost Port 80
¿Cual es el maldito problema, ya que me he vuelto mono buscandolo?
Ahhh, tengo PHP 4.0, APACHE Y MYSQL Corriendo bajo Win98 (PHPTriad)
Valora esta pregunta


0