a single line break after the closing ?> will not cause this problem. PHP interpreter will neglect a single line break after ?> a good debugger like xdebug will be helpful in this case. u can also see the source code of the file to locate the output. any thing before php warning is the output before session_start()