chaseman Posted February 2, 2011 Share Posted February 2, 2011 I'm trying to use SESSIONS, the start of my page looks like this: <?php session_start(); and the start of the source code looks like this: <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by The <?php tag is on line 1, yet as you can see Notepad++ seems to add a <br /> before it, which results in the sessions not working. How can I fix this? Quote Link to comment https://forums.phpfreaks.com/topic/226484-notepad-seems-to-add-a-line-break-before/ Share on other sites More sharing options...
mikosiko Posted February 2, 2011 Share Posted February 2, 2011 you can try in "Settings" -> "Preferences" -> "New Document/Default Directory" -> Encoding and choose "UTF-8 without BOM" Quote Link to comment https://forums.phpfreaks.com/topic/226484-notepad-seems-to-add-a-line-break-before/#findComment-1169009 Share on other sites More sharing options...
chaseman Posted February 2, 2011 Author Share Posted February 2, 2011 Thank you that fixed it. Quote Link to comment https://forums.phpfreaks.com/topic/226484-notepad-seems-to-add-a-line-break-before/#findComment-1169019 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.