Hola mi duda es la siguiente tengo una pagina que requiere autentificador de usuarios en php cuando trato de validarla me dan los siguientes errores:
No Character Encoding Found! Falling back to UTF-8.
None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents.
Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.
Unable to Determine Parse Mode!
The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:
the MIME Media Type (text/html) can be used for XML or SGML document types
No known Document Type could be detected
No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.
As a default, the validator is falling back to SGML mode.
No Character encoding declared at document level
No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.
See this tutorial on character encoding for techniques and explanations.
↑ Top
Validation Output: 2 Errors
Line 1, Column 1: character "E" not allowed in prolog
Error cod.: 2 - Acceso incorrecto!✉
Line 1, Column 35: end of document in prolog
Error cod.: 2 - Acceso incorrec…✉
Este es el código de la página talvez me puedan a ayudar a solucionarlo
Código PHP:
// Autenticación - Activa
require("aut_verifica.inc.php");
// Nivel de acceso - Inicializa
$nivel_acceso=10;
if ($nivel_acceso < $_SESSION['usuario_nivel']){
header ("Location: $redir?error_login=5");
exit;
}
// iniciamos sesiones
session_start();
//nombre del usuario
$sesion_ideusu=$_SESSION['usuario_login'];
// Configuración - Carga
require ("aut_config.inc.php");
// Variable pag - Incializa nombre página actual
$pag=$_SERVER['PHP_SELF'];
Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>::SASS:: Sistema de Administración de Solicitudes de Servicio</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script type="text/javascript">
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}
</script>
</head>
<body>
</body>
</html>