Headaing...utf8?sessions? |
[eluser]whidbey[/eluser]
I found it not easy to do with sessions and utf-8 my control folder with utf-8 style files. my autoload.php use: $autoload['libraries'] = array('database','session'); using system's session libary, my page got error like this: A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at F:\Myshop\51szu\system\application\config\config.php:1) Filename: libraries/Session.php Line Number: 282 using obsession to my own libary folder. I got errors like this: A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at F:\Myshop\51szu\system\application\config\config.php:1) Filename: libraries/Session.php Line Number: 452 A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at F:\Myshop\51szu\system\application\config\config.php:1) Filename: libraries/Session.php Line Number: 493
[eluser]number5[/eluser]
It's the famous UTF-8 BOM Problem: http://juicystudio.com/article/utf-byte-order-mark.php If you are using Dreamweaver you should turn on the option "save UTF8 file without BOM" or using editor like vim to remove it.
[eluser]whidbey[/eluser]
but if so many php files.. and so far I dont' have a tool to do it |
Welcome Guest, Not a member yet? Register Sign In |