Home  >  Article  >  Backend Development  >  discuz x3.2下主题页因为dtd前面有一行空格和不知名的占位符,导致很多异常

discuz x3.2下主题页因为dtd前面有一行空格和不知名的占位符,导致很多异常

WBOY
WBOYOriginal
2016-06-13 12:05:021197browse

discuz x3.2下主题页因为dtd前面有一行空格和不知名的占位符,导致很多错误


网页源代码的dtd前有一行空格和不知名的占位符,导致很多错误。在官方默认模板下主题页也是这样,模板文件在本地测试没什么问题,这是逻辑代码问题还是其他问题呢?
------解决方案--------------------
只有一个 BOM 头

$url = 'http://www.jydnzj.com';<br />$s = file_get_contents($url);<br />echo bin2hex(substr($s, 0, 20));
efbbbf3c21444f43545950452068746d6c205055

至于是哪个文件的,我就不知道了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn