busnut Posted June 3, 2009 Share Posted June 3, 2009 G'day Just recently upgrade to Microsoft Expression Web from Microsoft Frontpage, and have discovered that any file I edit where I have this line at the start of the file: <? session_start(); include("checkfilename.php"); ?> comes up with 'cannot modify header' error, yet I haven't touched the header, and this is only apparent since I have gone to using Expression Web to edit my pages. So is there something in Expression Web that somewhere changes something in the file i'm editing that I can't see? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/ Share on other sites More sharing options...
blackswan Posted June 3, 2009 Share Posted June 3, 2009 Ever opened this file in a normal text editor? cheers, tobi Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848400 Share on other sites More sharing options...
busnut Posted June 3, 2009 Author Share Posted June 3, 2009 Ever opened this file in a normal text editor? cheers, tobi Yes I have, and have had to do that since this issue, but want to know why its doing it, and can it be fixed? Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848459 Share on other sites More sharing options...
PFMaBiSmAd Posted June 3, 2009 Share Posted June 3, 2009 It would seriously help if you posted one of the complete error messages. If the error message states the output is starting on line 1, then it is most likely that your files are being saved as UTF-8 instead of ANSI (ASCII) and the BOM characters that the editor places at the start of the file is the content that is being output that prevents the headers from working. Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848475 Share on other sites More sharing options...
busnut Posted June 3, 2009 Author Share Posted June 3, 2009 It would seriously help if you posted one of the complete error messages. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/website/public_html/test.php:1) in /home/website/public_html/test.php on line 2 I see you mentioned something about UTF-8 & Ansi, I did see something somewhere in expression web about that. If it is UTF8, then how do I change it? Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848477 Share on other sites More sharing options...
PFMaBiSmAd Posted June 3, 2009 Share Posted June 3, 2009 If your page must be saved as UTF-8, then save it without the BOM. If the editor you are using does not have that option, time to use a real programming editor. Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848479 Share on other sites More sharing options...
busnut Posted June 3, 2009 Author Share Posted June 3, 2009 If your page must be saved as UTF-8, then save it without the BOM. If the editor you are using does not have that option, time to use a real programming editor. I just want to save it like how it use to save it on Frontpage. And whats a real editor? I thought thats what expression web was, or are you referring to linux software which I don't know much about? Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848481 Share on other sites More sharing options...
JonnoTheDev Posted June 3, 2009 Share Posted June 3, 2009 In Save the current file as: dropdown choose Unicode (UTF-*) (or an encoding that you want) Clear the checkbox “Include a byte-order mark (BOM) when saving as Unicode - Click Save as… and overwrite the original file. Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848487 Share on other sites More sharing options...
busnut Posted June 3, 2009 Author Share Posted June 3, 2009 In Save the current file as: dropdown choose Unicode (UTF-*) (or an encoding that you want) Clear the checkbox “Include a byte-order mark (BOM) when saving as Unicode - Click Save as… and overwrite the original file. Thankyou, that appears to work sweel. The ascii one I could find was 'US (Ascii)'. Thanks for your help, most appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/160750-solved-header-error-displaying-after-editing-in-expression-web/#findComment-848495 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.