LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 713|回复: 3

PHP程序问题

[复制链接]
发表于 2004-11-22 21:56:49 | 显示全部楼层 |阅读模式
Warning: Cannot add header information - headers already sent by (output started at D:\nq\youth\function.php:53) in D:\nq\youth\function.php on line 70
在调用header("location: ./...php")后,执行程序时出现上述问题,WHY?如何解决?
发表于 2004-11-23 09:10:46 | 显示全部楼层
你的header前面有了echo,把那个取消了!
发表于 2004-11-29 20:04:07 | 显示全部楼层
调用header函数前不能有任何文本输出
包括空行和空格
发表于 2004-11-29 23:11:16 | 显示全部楼层

用ob试试呐???

[PHP]
<?php
ob_start();

header (....);
....

ob_end_flush();
?>
[/PHP]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表