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. Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/69289-cookies-and-stylesheets/#findComment-348195 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.