• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Message: Cannot modify header information - headers already sent by

#1
[eluser]Yakow[/eluser]
Hi.
Anyone can help me ?

My controller is this:


Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Noticias extends CI_Controller {

function __construct(){
  parent::__construct();
}

function index(){
  echo "say hi.";
}
}

i deleted all other files (model, views etc...)
so when I run this aplication on localhost i dont recive this warning.
When i put on a internet, i recived this message:

Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/webda/public_html/caronaclube.com.br/red/application/controllers/administracao/noticias.php:1)

Filename: libraries/Session.php

Line Number: 673

Why? I just have this controller.
In my AUTOLOAD in put 'session', is right?

#2
[eluser]Yakow[/eluser]
I found the fix.

is a hidden signs utf 8 in r code, u just need scan the .php files using BOM REMOVER
http://sourceforge.net/projects/bomremover/

Smile
Enjoy if u need this help!!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.