SJames Posted September 14, 2007 Share Posted September 14, 2007 For some reason when I have a stylesheet at the top of my page's source code, when I do anything to a cookie (set or delete), I get the following error message: Warning: Cannot modify header information - headers already sent by (output started at ...) in ... on line # *I removed the URL information and replaced it with ... This does not occur when the stylesheet is at the bottom of the page. Link to comment https://forums.phpfreaks.com/topic/69289-cookies-and-stylesheets/ Share on other sites More sharing options...
BillyBoB Posted September 14, 2007 Share Posted September 14, 2007 try: <?php ob_start(); ?> add this to the top of any php page with cookies in it. Link to comment https://forums.phpfreaks.com/topic/69289-cookies-and-stylesheets/#findComment-348193 Share on other sites More sharing options...
jitesh Posted September 14, 2007 Share Posted September 14, 2007 post code. Link to comment https://forums.phpfreaks.com/topic/69289-cookies-and-stylesheets/#findComment-348195 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.