Activating an user and Cannot modify header information
<p>How to activate a user name width the next code:</p>

<pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;  //index.phtml:10
...
//a piece from content.php
define("COOKIE_HASH",'myfsthpemail');
define("COOKIE_EMAIL",'myfsthpehash');
define("LOGIN_EXPIRES",60 * 60 * 24 * 365);
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); //content.php on line 135
$time = time() + LOGIN_EXPIRES;
setcookie (COOKIE_EMAIL, trim($_POST['email']), false, '/'); //content.php on line 137
setcookie (COOKIE_HASH,  trim($_POST['hash']) , false, '/'); //content.php on line 138
$scr = "setTimeout(function(){ window.location.href = 'http://www.myfirsthomepage.com'; },4000);";
$scr = '&lt;script type="text/javascript"&gt;' . $scr . '&lt;/script&gt;';
$str = '&lt;h1&gt;Activated&lt;/h1&gt;';
echo $str . $scr;
</code></pre>

<p>That it doesn't show a warning message:</p>

<pre><code>Warning: Cannot modify header information - headers already sent by (output started at /home/.../index.phtml:10) in /home/.../content.php on line 135
Warning: Cannot modify header information - headers already sent by (output started at /home/.../index.phtml:10) in /home/.../content.php on line 137
Warning: Cannot modify header information - headers already sent by (output started at /home/.../index.phtml:10) in /home/.../content.php on line 138
</code></pre>

<p>I try with server containing php 5.2.17.</p>

<p>Thank you</p>
