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

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

WBOY
WBOYOriginal
2016-06-13 12:22:431025browse

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

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