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? 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" 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. 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
Archived
This topic is now archived and is closed to further replies.