PHP - Error en rutina de seguridad

 
Vista:

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)

Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Error en rutina de seguridad

Publicado por Joe Black (277 intervenciones) el 04/06/2003 17:50:15
Estimado, por casualidad revisaste el archivo de Logs de apache y de PHP(espero lo hayas configurado para php), normalmente ahi aparece informacion acerca de lo que te sucede
Suerte
Joe
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar