Header()之前有输出
大多是看不见的空格回车制表符等
大多是看不见的空格回车制表符等
解决方案 »
- php支付接口 中行
- zend studio中如何转换文件编码?
- 关于将discuz论坛导入EasyEclipse的问题
- 求一SQL语句 ---mysql
- 关于用户在线状态的简单问题
- PHP能得到客户端的浏览器的信息吗?
- 请教一个乱码的问题
- 求判断一个字符是否与一个数组中某个值相等的最简单方法
- 求PHP算法 求大神帮助
- mysql数据库不能添加NULL值
- 请问,Call to undefined function mssql_connect() 是哪儿错了?,怎么解决?谢谢!
- 急,我在机器上先在IIS6上装的php,后又在APACHE2上装的php,因为测试完成,我把apache删除,IIS里也没法解释php了。
Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called.
在a.php里这样,if(isset($aa)) header('Location:b.php');
就会出以上的错误啊
大概楼主以为echo或print才算是输出吧。