Home  >  Article  >  Backend Development  >  为何PHP页面的include会占据一行?解决办法

为何PHP页面的include会占据一行?解决办法

WBOY
WBOYOriginal
2016-06-13 10:12:19909browse

为何PHP页面的include会占据一行?
在页面代码头部加了一个include("func/func.php");专门用来调用在func/func.php里面编好的函数,但每次打开页面,最上面总是会多一行,而且背景还是绿色的,很不好看,请问这是怎么回事?
经过调试,把include("func/func.php");删除就好了,这该怎么办呢?

------解决方案--------------------
notepad++将文件转换成无BOM的UTF8编码
------解决方案--------------------

探讨

刚刚发现,如果在IE下面打开就没问题了,我的机器上还有一个GreenBrowser和搜狗浏览器,后面两个打开就会出现这种情况,该怎么办?
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