当即将验证我的网站时,我收到此错误:
行:279栏:3
<?php include("byline.php"); ?> Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.).
我进行验证的网站只有74行,而不是279.有些文件包含大约40-80行/文件。我怎么找到这个第279行?
(我在&#34之后搜索了所有文件; <?php include("byline.php"); ?>
&#34;没有结果......)
答案 0 :(得分:0)
您没有结果,因为您正在搜索输出。 在被检查文件的索引中,您应该包含toline.php。
即使你的文件只有74行,include也会在输出中,因此最终的渲染结果会更大。
也可能会发生byline.php未包含在主文件中但在另一个文件中,我的意思是;
<?php include('first_include.php'); ?>
在里面,你的:
<?php include('byline.php'); ?>
最好的方法是在索引中搜索包含并从那里开始。