![]() |
Message Cannot modify header information - headers already sent - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Message Cannot modify header information - headers already sent (/showthread.php?tid=5362) |
Message Cannot modify header information - headers already sent - El Forum - 07-28-2009 [eluser]Unknown[/eluser] Thanks a million!!!! Message Cannot modify header information - headers already sent - El Forum - 03-11-2010 [eluser]Shiro[/eluser] [quote author="NeoAvatar" date="1242409182"]Some of CodeIgniter Core files are in UTF-8 encoding. Covert all of your (and CI) files to UTF-8 without BOM, like m3rLinEz says...Notepad++ come in hand, at all. The people that uses Dreamweaver, for example, can get some problems with encoding. Then, convert all files before the tests or deployment.[/quote] Ya, This is a good point! make sure u this b4 u start ur development! Message Cannot modify header information - headers already sent - El Forum - 03-31-2010 [eluser]digitalpbk[/eluser] This error is commonly seen in PHP installations. There are multiple ways to remove this warning other than turning error reporting off. You can turn output buffering on, use ob_ functions etc. For a comprehensive list see Solve cannot modify header information Message Cannot modify header information - headers already sent - El Forum - 01-07-2011 [eluser]Unknown[/eluser] thanks this is very usefully..... is there another problem when we use UTF-8 without BOM? when the web application have some relationship with database.. ![]() Message Cannot modify header information - headers already sent - El Forum - 01-07-2011 [eluser]Eric Cope[/eluser] Be careful with output buffering. Be aware of flushes because that will still cause errors when you try to send headers. Message Cannot modify header information - headers already sent - El Forum - 01-07-2011 [eluser]liu yiyi[/eluser] Thank you ~!! Your share Message Cannot modify header information - headers already sent - El Forum - 04-02-2011 [eluser]Unknown[/eluser] Actually Some of the Hosts they Use the PHP Header Function to Redirect our Site! So In those kind of servers if we use redirect() it will give the error, Because the redirect() function use 'PHP header' to redirect url, So the Best Way is use javascript '[removed].href=""' to load Your URL. 100% it will be work Example: //Your Code in Redirect redirect('site/function1'); //Alternate Code $url = 'site/function1' echo' [removed] [removed].href = "'.base_url().'index.php?/'.$url.'"; [removed] '; I am not sure its a right code! But I am using it for solve the Issue! Thanking You! Message Cannot modify header information - headers already sent - El Forum - 05-27-2011 [eluser]Unknown[/eluser] Thanks guys.. this message was making me crazy.. Message Cannot modify header information - headers already sent - El Forum - 07-07-2011 [eluser]Unknown[/eluser] if you get the error you can look in this article problem with error config.php:1 or etc Message Cannot modify header information - headers already sent - El Forum - 03-16-2012 [eluser]edurocks[/eluser] My problem was solved, removing the white space before the php opening tag. |