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

WBOY
Release: 2016-06-13 10:12:19
Original
908 people have browsed it

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

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

探讨

刚刚发现,如果在IE下面打开就没问题了,我的机器上还有一个GreenBrowser和搜狗浏览器,后面两个打开就会出现这种情况,该怎么办?
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!