random1 Posted August 27, 2008 Share Posted August 27, 2008 How can you gzip page content in PHP to run correctly in Firefox, IE, Safari and Opera?? I start with: ob_start('ob_gzhandler'); and end with: ob_end_flush(); I have it working so that it runs and gzips correclty in Firefox 2, 3 and in Safari. But when I run the same page (gzipped) in Internet Explorer it shows partial content with a plain background. In Opera it shows this notice 3 times: Notice: ob_end_flush() [ref.outcontrol]: failed to delete and flush buffer. No buffer to delete or flush. in .... How can this be handled? Link to comment https://forums.phpfreaks.com/topic/121514-gzipping-content-browser-wide/ Share on other sites More sharing options...
random1 Posted August 27, 2008 Author Share Posted August 27, 2008 I changed the last bit of code to: while (ob_get_level() > 0) { ob_end_flush(); } Seems to be working. Link to comment https://forums.phpfreaks.com/topic/121514-gzipping-content-browser-wide/#findComment-626664 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.