Warning: Cannot modify header information - headers already sent by (output sta

Posted on 16th Feb 2014 by admin

Warning: Cannot modify header information - headers already sent by (output started at /home/praylife/public_html/index.php:29) in /home/praylife/public_html/index.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at /home/praylife/public_html/index.php:29) in /home/praylife/public_html/index.php on line 189




LINE 189:


Code: if (isset($_GET['skin']) && $_GET['skin'] == "0") {
setcookie("skinid", "default", time()+60*60*24*60, "/");
header('Location: ./?');
}
LINE 29:

Code: if(!isset($_COOKIE['skinid']))
{
echo '<style type="text/css" media="all">@import url(2.css);</style>';
}
Ever since i moved from localhost to official server, this is happening why?

Other forums