"未知" PHP错误 - 这是什么意思? [英] "Unknown" PHP error - what is that supposed to mean?

查看:113
本文介绍了"未知" PHP错误 - 这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能存在重复:







[Mon Jan 10 21:01:26 2011] [error] [client xx.xx.xxx.xx] PHP警告:无法修改标题信息 - 标题已经存在发送到未知的第0行,referer:www.example.com/some.php


为什么PHP无法找到标题是从哪里发出的?

看看<?。标题功能非常敏感,如果有任何事情在手前输出,则不起作用。

Possible Duplicate:
How to fix "Headers already sent" error in PHP

[Mon Jan 10 21:01:26 2011] [error] [client xx.xx.xxx.xx] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: www.example.com/some.php

Why PHP is not able to locate where the headers were sent from?

解决方案

See if you have a space after <?. The header function is quite sensitive and doesnt work if anything is outputted before hand.

这篇关于&QUOT;未知&QUOT; PHP错误 - 这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆