Welcome Guest, Not a member yet? Register   Sign In
Message Cannot modify header information - headers already sent
#21

[eluser]Unknown[/eluser]
Thanks a million!!!!
#22

[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!
#23

[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
#24

[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.. Smile
#25

[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.
#26

[eluser]liu yiyi[/eluser]
Thank you ~!! Your share
#27

[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!
#28

[eluser]Unknown[/eluser]
Thanks guys.. this message was making me crazy..
#29

[eluser]Unknown[/eluser]
if you get the error you can look in this article problem with error config.php:1 or etc
#30

[eluser]edurocks[/eluser]
My problem was solved, removing the white space before the php opening tag.




Theme © iAndrew 2016 - Forum software by © MyBB