COOKIES and "Cannot modify header information"?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3354889/warning-cannot-modify-header-information-cant-find-error">Warning: Cannot modify header information. Can&#39;t find error</a>  </p>
</blockquote>



<p>a tough question. :)</p>

<p>I have a php script that upon a form submit verifies username and password against a DB and, if they're OK,     </p>

<pre><code>setcookie("call_admin_uin", $login , $expire);
setcookie("call_admin_pass", $password , $expire);
</code></pre>

<p>There is NO html before that. Nothing is echo-ed out and it works fine on my localhost and on one other server. Yet, when I upload it to my main server it gives out this:</p>

<pre><code>Warning: Cannot modify header information - headers already sent by (output started at /home7/pnstatsc/public_html/admin/index.php:6) in /home7/pnstatsc/public_html/admin/index.php on line 72

Warning: Cannot modify header information - headers already sent by (output started at /home7/pnstatsc/public_html/admin/index.php:6) in /home7/pnstatsc/public_html/admin/index.php on line 73
</code></pre>

<p>So I guess there could be something wrong with the server setting... any idea what it might be?</p>

<p>Thanks!</p>
