heavyEddie Posted November 28, 2006 Share Posted November 28, 2006 Is there a way to see if ob_start is currently on/active? A script I'm working on needs to behave differently if it isn't. Darn headers :) Quote Link to comment Share on other sites More sharing options...
trq Posted November 28, 2006 Share Posted November 28, 2006 [url=http://php.net/ob_get_status]ob_get_status[/url](). Quote Link to comment Share on other sites More sharing options...
heavyEddie Posted November 28, 2006 Author Share Posted November 28, 2006 Well that was just to darned easy... I'm sorry I didn't research this one further. Quote Link to comment Share on other sites More sharing options...
heavyEddie Posted November 28, 2006 Author Share Posted November 28, 2006 When I use ob_start(), it returns that it is on, but I still can't set cookies. The CMS I use has Ggzip capability. When that is turned on they also enable ob_start(). Everything works beautfully in that situations. However, when I attempt to use ob_start() in my script/plugin, cookies will not save. Any ideas? Quote Link to comment Share on other sites More sharing options...
trq Posted November 28, 2006 Share Posted November 28, 2006 Your cookies wont be set until the buffer is flushed, can we see some code? Quote Link to comment 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.