Home > Backend Development > PHP Tutorial > thinkphp 3.1 无端端返回 xml 格式

thinkphp 3.1 无端端返回 xml 格式

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:19:25
Original
1194 people have browsed it

方法代码只有下面

<code>   
echo 'hello';
exit();
</code>
Copy after login
Copy after login

thinkphp 3.1 无端端返回 xml 格式

chrome 查看http响应得出下面内容
Content-Type:image/svg+xml

输出前加入

<code>header('Content-type:text/html;charset=utf-8');
</code>
Copy after login
Copy after login

则输出正常
别人页面多数正常,偶尔会出现以上错误,何解

回复内容:

方法代码只有下面

<code>   
echo 'hello';
exit();
</code>
Copy after login
Copy after login

thinkphp 3.1 无端端返回 xml 格式

chrome 查看http响应得出下面内容
Content-Type:image/svg+xml

输出前加入

<code>header('Content-type:text/html;charset=utf-8');
</code>
Copy after login
Copy after login

则输出正常
别人页面多数正常,偶尔会出现以上错误,何解

如果影响开发的话不如换3.2 (:3 」∠)

换3.2.2试试呗,现在5.0都出来了, 别用3.1了

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template