Codeigniter - 无法修改标头信息 - 已发送的标头 [英] Codeigniter - Cannot modify header information - headers already sent by

查看:137
本文介绍了Codeigniter - 无法修改标头信息 - 已发送的标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

A PHP Error was encountered
Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/aphotel/public_html/application/config/config.php:1)

Filename: libraries/Session.php

Line Number: 366





它的奇怪部分,libraries文件夹中没有session.php文件

#

Weird part of it, there is no session.php file in libraries folder

推荐答案

我之前遇到过这个问题,它是由output_buffering关闭引起的。

I had this problem before and it was caused by output_buffering was Off.

php.ini并搜索output_buffering并使其看起来像这样

Edit your php.ini and search for output_buffering and make it looks like this

output_buffering = On

这篇关于Codeigniter - 无法修改标头信息 - 已发送的标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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