jordanwb Posted September 16, 2008 Share Posted September 16, 2008 I'm get the "output already sent error" and the only thing I can figure is that the file in question uses UTF-8 with BOM while others do not use BOM. Is this possible? Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/ Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 Yes. Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643376 Share on other sites More sharing options...
jordanwb Posted September 16, 2008 Author Share Posted September 16, 2008 You certainly don't beat around the bush do you DarkWater? Stupid Geany. I can't save files without BOM. Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643379 Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 I use Geany all the time. Document > Write Unicode BOM (Uncheck it) Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643381 Share on other sites More sharing options...
jordanwb Posted September 16, 2008 Author Share Posted September 16, 2008 Stupid me. I past it several times and I never saw it. Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643383 Share on other sites More sharing options...
DarkWater Posted September 16, 2008 Share Posted September 16, 2008 Lol. Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643386 Share on other sites More sharing options...
jordanwb Posted September 16, 2008 Author Share Posted September 16, 2008 Now I have to figure out why my script isn't working. I guess that happens when you perform a major rewrite of the menu engine. [Edit] A large part of the code wouldn't work because the order of three parameters in a function. Getting a new computer mouse was the only thing I've gotten right today. :-( Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643390 Share on other sites More sharing options...
btherl Posted September 17, 2008 Share Posted September 17, 2008 You can use this method of argument passing. It's more verbose but that's often a good thing: function foo($args) { $bob = $args['bob']; $baz = $args['baz']; $enable_some_flag = $args['enable_some_flag']; } foo(array( 'bob' => 'bob', 'baz' => 'baz', 'enable_some_flag' => true, )); Quote Link to comment https://forums.phpfreaks.com/topic/124563-solved-does-utf8s-byte-order-mark-mess-around-with-headers/#findComment-643448 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.