Jump to content

Notepad++ seems to add a line break before <?php - how can I fix this?


chaseman

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.