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 :) Link to comment https://forums.phpfreaks.com/topic/28736-ob_start-check-to-see-if-it-on/ 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](). Link to comment https://forums.phpfreaks.com/topic/28736-ob_start-check-to-see-if-it-on/#findComment-131561 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. Link to comment https://forums.phpfreaks.com/topic/28736-ob_start-check-to-see-if-it-on/#findComment-131593 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? Link to comment https://forums.phpfreaks.com/topic/28736-ob_start-check-to-see-if-it-on/#findComment-131604 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? Link to comment https://forums.phpfreaks.com/topic/28736-ob_start-check-to-see-if-it-on/#findComment-131607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.