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? 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. 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. 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) 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. 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. 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. :-( 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, )); 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
Archived
This topic is now archived and is closed to further replies.