用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3726|回复: 5
收起左侧

redirect()跳转出现问题

[复制链接]
发表于 2009-11-18 19:03:54 | 显示全部楼层 |阅读模式
A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\CI\system\application\controllers\insert.php:1)

Filename: helpers/url_helper.php

Line Number: 541
fghf.jpg
发表于 2009-11-18 19:51:11 | 显示全部楼层
BOM 问题,请搜索 google,并检查 controllers/insert.php 第一行。
用 EmEditor 另存为 utf-8 无标签
 楼主| 发表于 2009-11-18 21:35:08 | 显示全部楼层
我用的是NetBeans IDE编写的
发表于 2009-11-20 16:31:26 | 显示全部楼层
不管用什么编辑器,也不能有 BOM,因为 PHP 不认这东西。
发表于 2010-4-20 10:54:50 | 显示全部楼层
爱,都是Bom惹的祸!
发表于 2010-8-9 13:23:42 | 显示全部楼层
恩,之前我的xml也遇到这个情况。
同lz,我也用NetBeans 6.9。这东西确实好用。

本版积分规则