Todd88 Posted May 25, 2008 Share Posted May 25, 2008 Alright so I have a website which I modified only a tiny bit and am getting an error. Here are the error messages: Warning: Cannot modify header information - headers already sent by (output started at /home/unt1lid1/public_html/theonedollartree/program.php:259) in /home/unt1lid1/public_html/theonedollartree/program.php on line 156 Warning: Cannot modify header information - headers already sent by (output started at /home/unt1lid1/public_html/theonedollartree/program.php:259) in /home/unt1lid1/public_html/theonedollartree/program.php on line 157 Warning: Cannot modify header information - headers already sent by (output started at /home/unt1lid1/public_html/theonedollartree/program.php:259) in /home/unt1lid1/public_html/theonedollartree/program.php on line 158 Warning: Cannot modify header information - headers already sent by (output started at /home/unt1lid1/public_html/theonedollartree/program.php:259) in /home/unt1lid1/public_html/theonedollartree/program.php on line 159 Warning: Cannot modify header information - headers already sent by (output started at /home/unt1lid1/public_html/theonedollartree/program.php:259) in /home/unt1lid1/public_html/theonedollartree/program.php on line 160 I looked in program.php and found that at every one of these lines is a place where my website places a cookie of some sort. When I comment these lines out it works but I do not want to do that because then there are no cookies set. Any help would be greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/107196-solved-pretty-simple-problemim-sure/ Share on other sites More sharing options...
trq Posted May 25, 2008 Share Posted May 25, 2008 Have you read the HEADER ERRORS sticky at the top of this board? Quote Link to comment https://forums.phpfreaks.com/topic/107196-solved-pretty-simple-problemim-sure/#findComment-549583 Share on other sites More sharing options...
.josh Posted May 25, 2008 Share Posted May 25, 2008 http://www.phpfreaks.com/forums/index.php/topic,95562.0.html Quote Link to comment https://forums.phpfreaks.com/topic/107196-solved-pretty-simple-problemim-sure/#findComment-549584 Share on other sites More sharing options...
jamieh Posted May 25, 2008 Share Posted May 25, 2008 Could this be something to do with session_start()? I used to have trouble with a similar problem.. the session_start() needs to be at the very top of the page before anything else. Other than that i do not know. Quote Link to comment https://forums.phpfreaks.com/topic/107196-solved-pretty-simple-problemim-sure/#findComment-549585 Share on other sites More sharing options...
Todd88 Posted May 25, 2008 Author Share Posted May 25, 2008 Gah...jeez sorry about this guys. I fixed it. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/107196-solved-pretty-simple-problemim-sure/#findComment-549589 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.