Home > Backend Development > PHP Tutorial > 初学PHP,include的奇怪问题,求指点

初学PHP,include的奇怪问题,求指点

WBOY
Release: 2016-06-23 13:31:22
Original
790 people have browsed it

require_once '../../system/common.php';
页面头部会莫名其妙多了一串乱码字符串。
怎么调都没用,而common.php中并没有找到echo的内容。
后来不经意间把common.php,文件名字改成common1.php
require_once '../../system/common1.php';
竟然不会乱码了,名字改回common.php又会乱码了。这是怎么回事呢,虽然现在临时用common1.php,可以解决了,但是百思不得其解,求前辈帮忙指点下。


回复讨论(解决方案)

bom 头 搜索一下

bom 头 搜索一下



学习了,是这个问题,谢谢非常感谢,解开一个心结。
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