Header()之前有输出
大多是看不见的空格回车制表符等
大多是看不见的空格回车制表符等
解决方案 »
- php的curl问题,登录51cto
- 如何在DIV上显示php的值?
- mysql DROP DATABASE问题
- 請問php的工資水平怎樣?
- Simple_XML中如果对中文结点进行解析?
- 练习文件上传的例子~~~
- 帮忙修改一下设计思路,分全送,不过不多,只有一百。
- 如何用php将几个文件打包成zip文件?(linux平台)
- 一个很有争议的问题
- json返回值带函数名,PHP里怎么回调呢?
- 请问,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才算是输出吧。