title: PHP session_start() error?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3801178/php-headers-already-sent">PHP headers already sent</a>  </p>
  </blockquote>
  
  
  
  <p>So I just joined Hostgator.com, and was wondering, why do I always get this error:</p>
  
  <pre><code>Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/kapip/public_html/main/mainpage.php:5) in /home/kapip/public_html/main/mainpage.php on line 7
  
  Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/kapip/public_html/main/mainpage.php:5) in /home/kapip/public_html/main/mainpage.php on line 7
  </code></pre>
  
  <p>What does this mean? I know I have to probably edit the php.ini, but I'm not sure what to change. Can anyone help me out? Thank you!</p>