PHP header解决思路

WBOY
Release: 2016-06-13 13:30:55
Original
979 people have browsed it

PHP header
Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\xinR_process.php:1) in D:\AppServ\www\xinR_process.php on line 29
有什么办法能追踪到 哪里输出了 我实在找不到问题所在了 所有的代码我都看了 代码是我之前编写好的 我只是重装了系统 将代码 也txt格式上传到网上 然后下载下来就出现了这个问题

------解决方案--------------------
output started at D:\AppServ\www\xinR_process.php:1

第1行已经发送了 header 
然后在1-29行之间你向页面输出了内容?

header之前不能向页面输出任何内容,除非你使用了
ob_start();
....
ob_clean();
------解决方案--------------------
BTW,一般来说,第一行存在非你本人发送的header,极有可能是BOM
------解决方案--------------------
所有的------解决方案--------------------
BOM 头
为什么非要所谓的国际化呢?
有多少国际友人能看懂中文呢?

------解决方案--------------------

探讨

引用:
BOM 头
为什么非要所谓的国际化呢?
有多少国际友人能看懂中文呢?


问题是处在BOM头 但是我不太懂这个问题
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!