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

WBOY
Release: 2016-06-13 12:55:11
Original
819 people have browsed it

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

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

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

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

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

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!