You should be able to tell if your code is outputting something to the browser.

For example
PHP Code:
//breaks
<?php
echo "test";
session_start();
?>

//also breaks
<html>
<?php
session_start
();
?>

//Doesn't break
<?php
session_start
();
?>
<html>