Home >Backend Development >PHP Tutorial > Thinkphp: 关于文件格式引起运行的异常

Thinkphp: 关于文件格式引起运行的异常

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:55:11874browse

Thinkphp: 关于文件格式引起运行的错误

按照正常步骤, 新建一个TP的项目,手动创建一个入口文件index.php.

在Firefox中运行http://localhost/IIT/,提示以下错误,IE下则无任何输出。

引起这个错误,主要是因为index.php保存的时候,没有选择无BOM头的格式保存。

解决:只需‘另存为’,格式选择‘UTF-8 无BOM’(UE中),即可。

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