Every time I try to run this code
$do = 1;
$cookie_life = time() + 31536000;
setcookie('clogin', $clogin, $cookie_life);
setcookie('clevel', $clevel, $cookie_life);
setcookie('crank', $crank, $cookie_life);
setcookie('cid', $cid, $cookie_life);
setcookie('ccheckin', $do, $cookie_life);
I get these errors.
Warning: Cannot modify header information - headers already sent by (output started at /home/hawthorn/public_html/sitefunctions.php:123) in /home/hawthorn/public_html/loginact.php on line 29
Warning: Cannot modify header information - headers already sent by (output started at /home/hawthorn/public_html/sitefunctions.php:123) in /home/hawthorn/public_html/loginact.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /home/hawthorn/public_html/sitefunctions.php:123) in /home/hawthorn/public_html/loginact.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /home/hawthorn/public_html/sitefunctions.php:123) in /home/hawthorn/public_html/loginact.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/hawthorn/public_html/sitefunctions.php:123) in /home/hawthorn/public_html/loginact.php on line 33
I looked in the sitefunctions.php file on line 123 and thats the end of the file. I'm not seeing what is going on here.