php包括xhtml1-strict.dtd

php包括xhtml1-strict.dtd,php,authentication,xhtml,Php,Authentication,Xhtml,我有一个简单的index.php文件,用于检查用户身份验证,如果一切正常,则包括带有用户库的index.html文件: <?php if(!user_is_authenticated()) { header("location: http://someloginsite"); } include("index.html"); ?> 与所有其他声明一起,它运行良好。。。我遗漏了什么?您的问题是xml声明 <?xml version="1.0" encoding="UTF

我有一个简单的index.php文件,用于检查用户身份验证,如果一切正常,则包括带有用户库的index.html文件:

<?php
if(!user_is_authenticated()) {
    header("location: http://someloginsite");
}
include("index.html");
?>

与所有其他声明一起,它运行良好。。。我遗漏了什么?

您的问题是xml声明

<?xml version="1.0" encoding="UTF-8"?>
^^ <-- here
echo '<?xml version="1.0" encoding="UTF-8"?>';


^^您的问题是xml声明

<?xml version="1.0" encoding="UTF-8"?>
^^ <-- here
echo '<?xml version="1.0" encoding="UTF-8"?>';


^^如果(!user_经过身份验证){
是否应该有一个
$
()
如果它是一个函数你好,对不起,你当然有(),我重新键入了它不正确…函数本身可以与所有其他声明一起工作…谢谢如果(!user_经过身份验证),这是什么
{
是否应该有一个
$
()
如果它是一个函数您好,对不起,您当然有(),我重新键入了错误…函数本身可以与所有其他声明一起工作…谢谢